/*! For license information please see 0fb5f701f46ae649.vendor.js.LICENSE.txt */ (globalThis.webpackChunk_canva_web=globalThis.webpackChunk_canva_web||[]).push([[98821],{15924:(t,e,n)=>{"use strict";var r,i;function o(t){return t.type===r.literal}function s(t){return t.type===r.argument}function a(t){return t.type===r.number}function c(t){return t.type===r.date}function u(t){return t.type===r.time}function l(t){return t.type===r.select}function h(t){return t.type===r.plural}function f(t){return t.type===r.pound}function d(t){return t.type===r.tag}function p(t){return!(!t||"object"!=typeof t||t.type!==i.number)}function m(t){return!(!t||"object"!=typeof t||t.type!==i.dateTime)}n.d(e,{Im:()=>s,Jp:()=>l,N1:()=>p,N6:()=>h,Qh:()=>u,Tu:()=>m,ZE:()=>r,eW:()=>o,jA:()=>f,oF:()=>a,rq:()=>i,tv:()=>c,xm:()=>d}),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(r||(r={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(i||(i={}))},16650:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={disabled:!1}},36391:(t,e,n)=>{"use strict";n.d(e,{y:()=>a});var r=n(423624),i=n(167714),o=n(195577),s=n(547581),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,u=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var f=0;f{"use strict";n.d(e,{zR:()=>g});var r=n(342685),i=n(493036),o=(n(989706),n(168682));function s(t){return"/"===t.charAt(0)?t:"/"+t}function a(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function c(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function u(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function l(t,e,n,o){var s;"string"==typeof t?(s=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),s.state=e):(void 0===(s=(0,r.A)({},t)).pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=(0,i.A)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s}function h(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r{"use strict";n.d(e,{u:()=>a});var r=n(893360),i=n(802408),o=n(477176);function s(){return new o.B7}function a(){return function(t){return(0,i.B)()((0,r.f)(s)(t))}}},69554:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var r=n(512547),i=n(36391);function o(t,e){return new r.c((function(n){var r=new i.y;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}},76901:(t,e,n)=>{"use strict";var r=n(754838);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},82321:(t,e,n)=>{"use strict";var r;n.d(e,{we:()=>R});var i=n(978109),o=(n(607768),n(612151),n(821046),n(276089)),s=n(589916);n(523546),n(944552);const a={...r||(r=n.t(i,2))},c=a.useInsertionEffect||(t=>t());function u(t){const e=i.useRef((()=>{0}));return c((()=>{e.current=t})),i.useCallback((function(){for(var t=arguments.length,n=new Array(t),r=0;r"floating-ui-"+Math.random().toString(36).slice(2,6)+b++;const y=a.useId||function(){const[t,e]=i.useState((()=>g?E():void 0));return p((()=>{null==t&&e(E())}),[]),i.useEffect((()=>{g=!0}),[]),t};function w(){const t=new Map;return{emit(e,n){var r;null==(r=t.get(e))||r.forEach((t=>t(n)))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,(null==(r=t.get(e))?void 0:r.filter((t=>t!==n)))||[])}}}const T=i.createContext(null),_=i.createContext(null),A=()=>{var t;return(null==(t=i.useContext(T))?void 0:t.id)||null},x=()=>i.useContext(_);function R(t){void 0===t&&(t={});const{nodeId:e}=t,n=function(t){const{open:e=!1,onOpenChange:n,elements:r}=t,o=y(),s=i.useRef({}),[a]=i.useState((()=>w())),c=null!=A(),[l,h]=i.useState(r.reference),f=u(((t,e,r)=>{s.current.openEvent=t?e:void 0,a.emit("openchange",{open:t,event:e,reason:r,nested:c}),null==n||n(t,e,r)})),d=i.useMemo((()=>({setPositionReference:h})),[]),p=i.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return i.useMemo((()=>({dataRef:s,open:e,onOpenChange:f,elements:p,events:a,floatingId:o,refs:d})),[e,f,p,a,o,d])}({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,a=r.elements,[c,l]=i.useState(null),[h,f]=i.useState(null),d=(null==a?void 0:a.reference)||c,m=i.useRef(null),v=x();p((()=>{d&&(m.current=d)}),[d]);const g=(0,s.we)({...t,elements:{...a,...h&&{reference:h}}}),b=i.useCallback((t=>{const e=(0,o.vq)(t)?{getBoundingClientRect:()=>t.getBoundingClientRect(),contextElement:t}:t;f(e),g.refs.setReference(e)}),[g.refs]),E=i.useCallback((t=>{((0,o.vq)(t)||null===t)&&(m.current=t,l(t)),((0,o.vq)(g.refs.reference.current)||null===g.refs.reference.current||null!==t&&!(0,o.vq)(t))&&g.refs.setReference(t)}),[g.refs]),T=i.useMemo((()=>({...g.refs,setReference:E,setPositionReference:b,domReference:m})),[g.refs,E,b]),_=i.useMemo((()=>({...g.elements,domReference:d})),[g.elements,d]),R=i.useMemo((()=>({...g,...r,refs:T,elements:_,nodeId:e})),[g,T,_,e,r]);return p((()=>{r.dataRef.current.floatingContext=R;const t=null==v?void 0:v.nodesRef.current.find((t=>t.id===e));t&&(t.context=R)})),i.useMemo((()=>({...g,context:R,refs:T,elements:_})),[g,T,_,R])}},82613:(t,e,n)=>{"use strict";n.d(e,{S:()=>s});var r=n(512547),i=n(36391),o=n(962779);function s(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.c((function(n){var r,s=new i.y;return s.add((function(){r&&"function"==typeof r.return&&r.return()})),s.add(e.schedule((function(){r=t[o.lJ](),s.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),s}))}},84654:(t,e,n)=>{"use strict";n.d(e,{t:()=>o});var r=n(512547),i=n(752933),o=new r.c(i.l)},87906:(t,e,n)=>{"use strict";n.d(e,{x:()=>s});var r=n(512547),i=n(36391),o=n(721076);function s(t,e){return new r.c((function(n){var r=new i.y;return r.add(e.schedule((function(){var i=t[o.s]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}},105572:(t,e,n)=>{var r=n(876461),i=n(493668),o=n(334986),s=n(565800),a=n(451118),c=n(999208),u=n(689420);u.alea=r,u.xor128=i,u.xorwow=o,u.xorshift7=s,u.xor4096=a,u.tychei=c,t.exports=u},106853:(t,e,n)=>{"use strict";n.d(e,{R:()=>r});var r=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i},126152:(t,e,n)=>{"use strict";n.d(e,{n:()=>a});var r=n(998083),i=n(257288),o=n(516194),s=n(869262);function a(t,e){return"function"==typeof e?function(n){return n.pipe(a((function(n,r){return(0,o.H)(t(n,r)).pipe((0,i.T)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new s.zA(this),r=this.destination;r.add(n),this.innerSubscription=(0,s.tS)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(s.gn)},129332:(t,e,n)=>{"use strict";n.d(e,{i:()=>f});var r=n(996643),i=n(561979),o=n(670798),s=n(700877),a=n(159247),c=n(366704),u=n(167714),l=n(962779),h=n(721076),f=function(t){if(t&&"function"==typeof t[h.s])return(0,s.X)(t);if((0,a.X)(t))return(0,r.v)(t);if((0,c.y)(t))return(0,i.F)(t);if(t&&"function"==typeof t[l.lJ])return(0,o.S)(t);var e=(0,u.G)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},138949:(t,e,n)=>{"use strict";n.d(e,{D:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},159247:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},165669:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}n.d(e,{A:()=>r})},167714:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{G:()=>r})},167921:(t,e,n)=>{"use strict";n.d(e,{S:()=>u});var r=n(944339),i=n(607597),o=n(919010),s=n(853469);function a(t,e){return e?Object.keys(t).reduce((function(n,i){var o,s;return n[i]=(o=t[i],(s=e[i])?(0,r.Cl)((0,r.Cl)((0,r.Cl)({},o||{}),s||{}),Object.keys(o).reduce((function(t,e){return t[e]=(0,r.Cl)((0,r.Cl)({},o[e]),s[e]||{}),t}),{})):o),n}),(0,r.Cl)({},t)):t}function c(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var u=function(){function t(e,n,i,u){var l,h=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=h.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===s.TT.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return(0,s.hN)(h.ast,h.locales,h.formatters,h.formats,t,void 0,h.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=h.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(h.locales)[0]}},this.getAst=function(){return h.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=u||{},d=(f.formatters,(0,r.Tt)(f,["formatters"]));this.ast=t.__parse(e,(0,r.Cl)((0,r.Cl)({},d),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=a(t.formats,i),this.formatters=u&&u.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.B)((function(){for(var t,e=[],n=0;n0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=i.qg,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}()},168682:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=!0,i="Invariant failed";function o(t,e){if(!t){if(r)throw new Error(i);var n="function"==typeof e?e():e,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},174762:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>s,s:()=>a,tz:()=>o});var r,i=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(){if(r)return r;if(!i||!window.document.body)return"indeterminate";var t=window.document.createElement("div");return t.appendChild(document.createTextNode("ABCD")),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),r="reverse",t.scrollLeft>0?r="default":(t.scrollLeft=2,t.scrollLeft<2&&(r="negative")),document.body.removeChild(t),r}function s(t,e){var n=t.scrollLeft;if("rtl"!==e)return n;var r=o();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return t.scrollWidth-t.clientWidth+n;case"reverse":return t.scrollWidth-t.clientWidth-n}return n}function a(t,e,n){if("rtl"===n){var r=o();if("indeterminate"!==r)switch(r){case"negative":t.scrollLeft=t.clientWidth-t.scrollWidth+e;break;case"reverse":t.scrollLeft=t.scrollWidth-t.clientWidth-e;break;default:t.scrollLeft=e}}else t.scrollLeft=e}},189630:(t,e,n)=>{"use strict";n.d(e,{p:()=>o});var r=n(998083),i=n(836932);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.v)},192582:(t,e,n)=>{"use strict";n.d(e,{u:()=>s});var r=n(836932),i=n(138949),o=n(378816);function s(t,e,n){if(t){if(t instanceof r.v)return t;if(t[i.D])return t[i.D]()}return t||e||n?new r.v(t,e,n):new r.v(o.I)}},192897:(t,e,n)=>{var r;!function(){function i(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2=e.f?i():t.fonts.load(function(t){return x(t)+" "+t.f+"00 300px "+_(t.c)}(e.a),e.h).then((function(t){1<=t.length?r():setTimeout(o,25)}),(function(){i()}))}()})),i=null,o=new Promise((function(t,n){i=setTimeout(n,e.f)}));Promise.race([o,r]).then((function(){i&&(clearTimeout(i),i=null),e.g(e.a)}),(function(){e.j(e.a)}))};var B={D:"serif",C:"sans-serif"},D=null;function U(){if(null===D){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return D}function H(t,e,n){for(var r in B)if(B.hasOwnProperty(r)&&e===t.f[B[r]]&&n===t.f[B[r]])return!0;return!1}function k(t){var e,n=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(e=n===t.f.serif&&r===t.f["sans-serif"])||(e=U()&&H(t,n,r)),e?a()-t.A>=t.w?U()&&H(t,n,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?j(t,t.v):j(t,t.B):function(t){setTimeout(s((function(){k(this)}),t),50)}(t):j(t,t.v)}function j(t,e){setTimeout(s((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),e(this.a)}),t),0)}function G(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}F.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),k(this)};var V=null;function X(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),P(t,"active")):C(t.a))}function z(t){this.j=t,this.a=new O,this.h=0,this.f=this.g=!0}function W(t,e,n,r,i){var o=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=i||null,a=r||{};if(0===n.length&&o)C(e.a);else{e.f+=n.length,o&&(e.j=o);var c,u=[];for(c=0;c{"use strict";n.d(e,{k:()=>r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},195354:(t,e,n)=>{"use strict";n.d(e,{j:()=>s});var r=n(998083),i=n(836932),o=n(36391);function s(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.callback))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new o.y(n)),r}return r.C6(e,t),e}(i.v)},195577:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{T:()=>r})},195916:(t,e,n)=>{"use strict";n.d(e,{F:()=>o});var r=n(998083),i=n(836932);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.C6(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.v)},202239:(t,e,n)=>{"use strict";n.d(e,{s:()=>a});var r=n(998083),i=n(836932),o=n(194656),s=n(935205);function a(t){return function(e){return 0===t?(0,s.I)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new o.k}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.C6(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.v)},207440:(t,e,n)=>{"use strict";n.d(e,{$:()=>i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},208463:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t="",e=0;e{"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,{T:()=>r})},218083:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{D:()=>r})},238595:(t,e,n)=>{"use strict";n.d(e,{of:()=>s});var r=n(772324),i=n(451149),o=n(478838);function s(){for(var t=[],e=0;e{"use strict";n.d(e,{T:()=>o});var r=n(998083),i=n(836932);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.C6(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.v)},270713:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>r});const r=n(167921).S},276089:(t,e,n)=>{"use strict";function r(t){return s(t)?(t.nodeName||"").toLowerCase():"#document"}function i(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function o(t){var e;return null==(e=(s(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function s(t){return t instanceof Node||t instanceof i(t).Node}function a(t){return t instanceof Element||t instanceof i(t).Element}function c(t){return t instanceof HTMLElement||t instanceof i(t).HTMLElement}function u(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof i(t).ShadowRoot)}function l(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function h(t){return["table","td","th"].includes(r(t))}function f(t){const e=p(),n=v(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function d(t){let e=b(t);for(;c(e)&&!m(e);){if(f(e))return e;e=b(e)}return null}function p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(t){return["html","body","#document"].includes(r(t))}function v(t){return i(t).getComputedStyle(t)}function g(t){return a(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(t){if("html"===r(t))return t;const e=t.assignedSlot||t.parentNode||u(t)&&t.host||o(t);return u(e)?e.host:e}function E(t){const e=b(t);return m(e)?t.ownerDocument?t.ownerDocument.body:t.body:c(e)&&l(e)?e:E(e)}function y(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=E(t),s=o===(null==(r=t.ownerDocument)?void 0:r.body),a=i(o);return s?e.concat(a,a.visualViewport||[],l(o)?o:[],a.frameElement&&n?y(a.frameElement):[]):e.concat(o,y(o,[],n))}n.d(e,{$4:()=>b,CP:()=>g,L9:()=>v,Lv:()=>h,Ng:()=>u,Tc:()=>p,ZU:()=>l,ep:()=>o,eu:()=>m,gJ:()=>d,mq:()=>r,sQ:()=>f,sb:()=>c,v9:()=>y,vq:()=>a,zk:()=>i})},294462:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),T="undefined"!=typeof WeakMap?new WeakMap:new r,_=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new w(e,n,this);T.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){_.prototype[t]=function(){var e;return(e=T.get(this))[t].apply(e,arguments)}}));const A=void 0!==o.ResizeObserver?o.ResizeObserver:_},332386:(t,e,n)=>{"use strict";n.d(e,{i:()=>I});var r,i=n(944339),o=n(810487),s=n(15924),a=n(688125),c=n(680811),u=n(553824),l=n(358892),h=new RegExp("^".concat(a.r.source,"*")),f=new RegExp("".concat(a.r.source,"*$"));function d(t,e){return{start:t,end:e}}var p=!!String.prototype.startsWith&&"_a".startsWith("a",1),m=!!String.fromCodePoint,v=!!Object.fromEntries,g=!!String.prototype.codePointAt,b=!!String.prototype.trimStart,E=!!String.prototype.trimEnd,y=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},w=!0;try{w="a"===(null===(r=P("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===r?void 0:r[0])}catch(F){w=!1}var T,_=p?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},A=m?String.fromCodePoint:function(){for(var t=[],e=0;eo;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},x=v?Object.fromEntries:function(t){for(var e={},n=0,r=t;n=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},S=b?function(t){return t.trimStart()}:function(t){return t.replace(h,"")},C=E?function(t){return t.trimEnd()}:function(t){return t.replace(f,"")};function P(t,e){return new RegExp(t,e)}if(w){var O=P("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");T=function(t,e){var n;return O.lastIndex=e,null!==(n=O.exec(t)[1])&&void 0!==n?n:""}}else T=function(t,e){for(var n=[];;){var r=R(t,e);if(void 0===r||L(r)||M(r))break;n.push(r),e+=r>=65536?2:1}return A.apply(void 0,n)};var I=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((a=this.parseArgument(t,n)).err)return a;r.push(a.val)}else{if(125===i&&t>0)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.F.UNMATCHED_CLOSING_TAG,d(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&N(this.peek()||0)){if((a=this.parseTag(t,e)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(t,e)).err)return a;r.push(a.val)}}else{var c=this.clonePosition();this.bump(),r.push({type:s.ZE.pound,location:d(c,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:s.ZE.literal,value:"<".concat(r,"/>"),location:d(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var a=i.val,c=this.clonePosition();if(this.bumpIf("")?{val:{type:s.ZE.tag,value:r,children:a,location:d(n,this.clonePosition())},err:null}:this.error(o.F.INVALID_TAG,d(c,this.clonePosition())))}return this.error(o.F.UNCLOSED_TAG,d(n,this.clonePosition()))}return this.error(o.F.INVALID_TAG,d(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i)r+=i;else{var o=this.tryParseUnquoted(t,e);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var c=d(n,this.clonePosition());return{val:{type:s.ZE.literal,value:r,location:c},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(N(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return A.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),A(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.F.EXPECT_ARGUMENT_CLOSING_BRACE,d(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.F.EMPTY_ARGUMENT,d(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.F.MALFORMED_ARGUMENT,d(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.F.EXPECT_ARGUMENT_CLOSING_BRACE,d(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:s.ZE.argument,value:r,location:d(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.F.EXPECT_ARGUMENT_CLOSING_BRACE,d(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(o.F.MALFORMED_ARGUMENT,d(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=T(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:d(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,r){var a,u=this.clonePosition(),h=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(h){case"":return this.error(o.F.EXPECT_ARGUMENT_TYPE,d(u,f));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition();if((A=this.parseSimpleArgStyleIfPossible()).err)return A;if(0===(E=C(A.val)).length)return this.error(o.F.EXPECT_ARGUMENT_STYLE,d(this.clonePosition(),this.clonePosition()));p={style:E,styleLocation:d(m,this.clonePosition())}}if((R=this.tryParseArgumentClose(r)).err)return R;var v=d(r,this.clonePosition());if(p&&_(null==p?void 0:p.style,"::",0)){var g=S(p.style.slice(2));if("number"===h)return(A=this.parseNumberSkeletonFromString(g,p.styleLocation)).err?A:{val:{type:s.ZE.number,value:n,location:v,style:A.val},err:null};if(0===g.length)return this.error(o.F.EXPECT_DATE_TIME_SKELETON,v);var b=g;this.locale&&(b=(0,l.d)(g,this.locale));var E={type:s.rq.dateTime,pattern:b,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,c.e)(b):{}};return{val:{type:"date"===h?s.ZE.date:s.ZE.time,value:n,location:v,style:E},err:null}}return{val:{type:"number"===h?s.ZE.number:"date"===h?s.ZE.date:s.ZE.time,value:n,location:v,style:null!==(a=null==p?void 0:p.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.F.EXPECT_SELECT_ARGUMENT_OPTIONS,d(y,(0,i.Cl)({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),T=0;if("select"!==h&&"offset"===w.value){if(!this.bumpIf(":"))return this.error(o.F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d(this.clonePosition(),this.clonePosition()));var A;if(this.bumpSpace(),(A=this.tryParseDecimalInteger(o.F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return A;this.bumpSpace(),w=this.parseIdentifierIfPossible(),T=A.val}var R,P=this.tryParsePluralOrSelectOptions(t,h,e,w);if(P.err)return P;if((R=this.tryParseArgumentClose(r)).err)return R;var O=d(r,this.clonePosition());return"select"===h?{val:{type:s.ZE.select,value:n,options:x(P.val),location:O},err:null}:{val:{type:s.ZE.plural,value:n,options:x(P.val),offset:T,pluralType:"plural"===h?"cardinal":"ordinal",location:O},err:null};default:return this.error(o.F.INVALID_ARGUMENT_TYPE,d(u,f))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(o.F.EXPECT_ARGUMENT_CLOSING_BRACE,d(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,d(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=(0,u.r)(t)}catch(r){return this.error(o.F.INVALID_NUMBER_SKELETON,e)}return{val:{type:s.rq.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?(0,u.e)(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var i,s=!1,a=[],c=new Set,u=r.value,l=r.location;;){if(0===u.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(o.F.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=d(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}if(c.has(u))return this.error("select"===e?o.F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?o.F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,d(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,n);if(m.err)return m;var v=this.tryParseArgumentClose(p);if(v.err)return v;a.push([u,{value:m.val,location:d(p,this.clonePosition())}]),c.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===e?o.F.EXPECT_SELECT_ARGUMENT_SELECTOR:o.F.EXPECT_PLURAL_ARGUMENT_SELECTOR,d(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(o.F.MISSING_OTHER_CLAUSE,d(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=d(r,this.clonePosition());return i?y(o*=n)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=R(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(_(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&L(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function N(t){return t>=97&&t<=122||t>=65&&t<=90}function L(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function M(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}},334986:function(t,e,n){var r;!function(t,i,o){function s(t){var e=this,n="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var r=0;r>>4),e.next()}function a(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var n=new s(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xorwow=c}(0,t=n.nmd(t),n.amdD)},342685:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;er})},353514:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var r={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},354697:(t,e,n)=>{"use strict";n.d(e,{_:()=>r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},358892:(t,e,n)=>{"use strict";n.d(e,{d:()=>i});var r=n(353514);function i(t,e){for(var n="",r=0;r>1),u=o(e);for("H"!=u&&"k"!=u||(c=0);c-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}function o(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=t.language;return"root"!==i&&(n=t.maximize().region),(r.c[n||""]||r.c[i||""]||r.c["".concat(i,"-001")]||r.c["001"])[0]}},366704:(t,e,n)=>{"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{y:()=>r})},367259:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,_K:()=>f,kp:()=>l,ns:()=>h,qD:()=>u,ze:()=>d});var r=n(165669),i=n(710821),o=n(978109),s=n(944552),a=n(16650),c=n(699321),u="unmounted",l="exited",h="entering",f="entered",d="exiting",p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i=l,r.appearStatus=h):i=f:i=e.unmountOnExit||e.mountOnEnter?u:l,r.state={status:i},r.nextCallback=null,r}(0,i.A)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:l}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==f&&(e=h):n!==h&&n!==f||(e=d)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===h?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[s.findDOMNode(this),r],o=i[0],c=i[1],u=this.getTimeouts(),l=r?u.appear:u.enter;!t&&!n||a.A.disabled?this.safeSetState({status:f},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,c),this.safeSetState({status:h},(function(){e.props.onEntering(o,c),e.onTransitionEnd(l,(function(){e.safeSetState({status:f},(function(){e.props.onEntered(o,c)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);e&&!a.A.disabled?(this.props.onExit(r),this.safeSetState({status:d},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,r.A)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(c.A.Provider,{value:null},"function"==typeof n?n(t,i):o.cloneElement(o.Children.only(n),i))},e}(o.Component);function m(){}p.contextType=c.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},p.UNMOUNTED=u,p.EXITED=l,p.ENTERING=h,p.ENTERED=f,p.EXITING=d;const v=p},374560:(t,e,n)=>{"use strict";n.d(e,{BN:()=>v,ER:()=>g,Ej:()=>b,RK:()=>c,UE:()=>a,UU:()=>u,__:()=>s,cY:()=>m,jD:()=>f,mG:()=>p,rD:()=>o});var r=n(612151);function i(t,e,n){let{reference:i,floating:o}=t;const s=(0,r.TV)(e),a=(0,r.Dz)(e),c=(0,r.sq)(a),u=(0,r.C0)(e),l="y"===s,h=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,d=i[c]/2-o[c]/2;let p;switch(u){case"top":p={x:h,y:i.y-o.height};break;case"bottom":p={x:h,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-o.width,y:f};break;default:p={x:i.x,y:i.y}}switch((0,r.Sg)(e)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}const o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:h,y:f}=i(l,r,u),d=r,p={},m=0;for(let v=0;v({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:a,elements:c,middlewareData:u}=e,{element:l,padding:h=0}=(0,r._3)(t,e)||{};if(null==l)return{};const f=(0,r.nI)(h),d={x:n,y:i},p=(0,r.Dz)(o),m=(0,r.sq)(p),v=await a.getDimensions(l),g="y"===p,b=g?"top":"left",E=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=s.reference[m]+s.reference[p]-d[p]-s.floating[m],T=d[p]-s.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let A=_?_[y]:0;A&&await(null==a.isElement?void 0:a.isElement(_))||(A=c.floating[y]||s.floating[m]);const x=w/2-T/2,R=A/2-v[m]/2-1,S=(0,r.jk)(f[b],R),C=(0,r.jk)(f[E],R),P=S,O=A-v[m]-C,I=A/2-v[m]/2+x,N=(0,r.qE)(P,I,O),L=!u.arrow&&null!=(0,r.Sg)(o)&&I!==N&&s.reference[m]/2-(I(0,r.Sg)(e)===t)),...n.filter((e=>(0,r.Sg)(e)!==t))]:n.filter((t=>(0,r.C0)(t)===t))).filter((n=>!t||(0,r.Sg)(n)===t||!!e&&(0,r.aD)(n)!==n))}(d||null,m,p):p,b=await s(e,v),E=(null==(n=c.autoPlacement)?void 0:n.index)||0,y=g[E];if(null==y)return{};const w=(0,r.w7)(y,a,await(null==l.isRTL?void 0:l.isRTL(h.floating)));if(u!==y)return{reset:{placement:g[0]}};const T=[b[(0,r.C0)(y)],b[w[0]],b[w[1]]],_=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:y,overflows:T}],A=g[E+1];if(A)return{data:{index:E+1,overflows:_},reset:{placement:A}};const x=_.map((t=>{const e=(0,r.Sg)(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),R=(null==(o=x.filter((t=>t[2].slice(0,(0,r.Sg)(t[0])?2:3).every((t=>t<=0))))[0])?void 0:o[0])||x[0][0];return R!==u?{data:{index:E+1,overflows:_},reset:{placement:R}}:{}}}},u=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:a,rects:c,initialPlacement:u,platform:l,elements:h}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=(0,r._3)(t,e);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const E=(0,r.C0)(o),y=(0,r.C0)(u)===u,w=await(null==l.isRTL?void 0:l.isRTL(h.floating)),T=p||(y||!g?[(0,r.bV)(u)]:(0,r.WJ)(u));p||"none"===v||T.push(...(0,r.lP)(u,g,v,w));const _=[u,...T],A=await s(e,b),x=[];let R=(null==(i=a.flip)?void 0:i.overflows)||[];if(f&&x.push(A[E]),d){const t=(0,r.w7)(o,c,w);x.push(A[t[0]],A[t[1]])}if(R=[...R,{placement:o,overflows:x}],!x.every((t=>t<=0))){var S,C;const t=((null==(S=a.flip)?void 0:S.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:R},reset:{placement:e}};let n=null==(C=R.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(m){case"bestFit":{var P;const t=null==(P=R.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function l(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function h(t){return r.r_.some((e=>t[e]>=0))}const f=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...o}=(0,r._3)(t,e);switch(i){case"referenceHidden":{const t=l(await s(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:h(t)}}}case"escaped":{const t=l(await s(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:h(t)}}}default:return{}}}}};function d(t){const e=(0,r.jk)(...t.map((t=>t.left))),n=(0,r.jk)(...t.map((t=>t.top)));return{x:e,y:n,width:(0,r.T9)(...t.map((t=>t.right)))-e,height:(0,r.T9)(...t.map((t=>t.bottom)))-n}}const p=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:o,platform:s,strategy:a}=e,{padding:c=2,x:u,y:l}=(0,r._3)(t,e),h=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(i.reference))||[]),f=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let i=null;for(let r=0;ri.height/2?n.push([t]):n[n.length-1].push(t),i=t}return n.map((t=>(0,r.B1)(d(t))))}(h),p=(0,r.B1)(d(h)),m=(0,r.nI)(c);const v=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=u&&null!=l)return f.find((t=>u>t.left-m.left&&ut.top-m.top&&l=2){if("y"===(0,r.TV)(n)){const t=f[0],e=f[f.length-1],i="top"===(0,r.C0)(n),o=t.top,s=e.bottom,a=i?t.left:e.left,c=i?t.right:e.right;return{top:o,bottom:s,left:a,right:c,width:c-a,height:s-o,x:a,y:o}}const t="left"===(0,r.C0)(n),e=(0,r.T9)(...f.map((t=>t.right))),i=(0,r.jk)(...f.map((t=>t.left))),o=f.filter((n=>t?n.left===i:n.right===e)),s=o[0].top,a=o[o.length-1].bottom;return{top:s,bottom:a,left:i,right:e,width:e-i,height:a-s,x:i,y:s}}return p}},floating:i.floating,strategy:a});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};const m=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:a,middlewareData:c}=e,u=await async function(t,e){const{placement:n,platform:i,elements:o}=t,s=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),l=["left","top"].includes(a)?-1:1,h=s&&u?-1:1,f=(0,r._3)(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),u?{x:p*h,y:d*l}:{x:d*l,y:p*h}}(e,t);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(i=c.arrow)&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},v=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=(0,r._3)(t,e),h={x:n,y:i},f=await s(e,l),d=(0,r.TV)((0,r.C0)(o)),p=(0,r.PG)(d);let m=h[p],v=h[d];if(a){const t="y"===p?"bottom":"right",e=m+f["y"===p?"top":"left"],n=m-f[t];m=(0,r.qE)(e,m,n)}if(c){const t="y"===d?"bottom":"right",e=v+f["y"===d?"top":"left"],n=v-f[t];v=(0,r.qE)(e,v,n)}const g=u.fn({...e,[p]:m,[d]:v});return{...g,data:{x:g.x-n,y:g.y-i}}}}},g=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:s,middlewareData:a}=e,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=(0,r._3)(t,e),h={x:n,y:i},f=(0,r.TV)(o),d=(0,r.PG)(f);let p=h[d],m=h[f];const v=(0,r._3)(c,e),g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const t="y"===d?"height":"width",e=s.reference[d]-s.floating[t]+g.mainAxis,n=s.reference[d]+s.reference[t]-g.mainAxis;pn&&(p=n)}if(l){var b,E;const t="y"===d?"width":"height",e=["top","left"].includes((0,r.C0)(o)),n=s.reference[f]-s.floating[t]+(e&&(null==(b=a.offset)?void 0:b[f])||0)+(e?0:g.crossAxis),i=s.reference[f]+s.reference[t]+(e?0:(null==(E=a.offset)?void 0:E[f])||0)-(e?g.crossAxis:0);mi&&(m=i)}return{[d]:p,[f]:m}}}},b=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:o,elements:a}=e,{apply:c=(()=>{}),...u}=(0,r._3)(t,e),l=await s(e,u),h=(0,r.C0)(n),f=(0,r.Sg)(n),d="y"===(0,r.TV)(n),{width:p,height:m}=i.floating;let v,g;"top"===h||"bottom"===h?(v=h,g=f===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,v="end"===f?"top":"bottom");const b=m-l.top-l.bottom,E=p-l.left-l.right,y=(0,r.jk)(m-l[v],b),w=(0,r.jk)(p-l[g],E),T=!e.middlewareData.shift;let _=y,A=w;if(d?A=f||T?(0,r.jk)(w,E):E:_=f||T?(0,r.jk)(y,b):b,T&&!f){const t=(0,r.T9)(l.left,0),e=(0,r.T9)(l.right,0),n=(0,r.T9)(l.top,0),i=(0,r.T9)(l.bottom,0);d?A=p-2*(0!==t||0!==e?t+e:(0,r.T9)(l.left,l.right)):_=m-2*(0!==n||0!==i?n+i:(0,r.T9)(l.top,l.bottom))}await c({...e,availableWidth:A,availableHeight:_});const x=await o.getDimensions(a.floating);return p!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}}},378816:(t,e,n)=>{"use strict";n.d(e,{I:()=>o});var r=n(207440),i=n(209523),o={closed:!0,next:function(t){},error:function(t){if(r.$.useDeprecatedSynchronousErrorHandling)throw t;(0,i.T)(t)},complete:function(){}}},380132:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(165669),i=n(897010),o=n(787475),s=n(710821),a=n(978109),c=n(699321),u=n(848106),l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},h=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind((0,o.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,s.A)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,u.dw)(t,r):(0,u.qX)(t,n,r),firstRender:!1}},n.handleExited=function(t,e){var n=(0,u.p7)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=(0,i.A)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,i=(0,r.A)(t,["component","childFactory"]),o=this.state.contextValue,s=l(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===e?a.createElement(c.A.Provider,{value:o},s):a.createElement(c.A.Provider,{value:o},a.createElement(e,i,s))},e}(a.Component);h.propTypes={},h.defaultProps={component:"div",childFactory:function(t){return t}};const f=h},421346:t=>{"use strict";t.exports=function(t){return!(!t||t.length<8)&&(137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7])}},423624:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},434008:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(675421);function i(t,e){t.classList?t.classList.add(e):(0,r.A)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}},447524:(t,e)=>{"use strict";Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});class n extends Error{}class r extends n{}class i extends n{}class o extends n{}class s extends n{}class a extends n{}class c extends n{}class u extends n{constructor(t){super(`unhandled case: ${JSON.stringify(t)}`)}}let l=0;function h(){return l++}function f(t){return null!=t}function d(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Float32Array}function p(t){switch(t){case"i8":return 5120;case"u8":return 5121;case"i16":return 5122;case"u16":return 5123;case"i32":return 5124;case"u32":return 5125;case"f32":return 5126;default:throw new u(t)}}const m={FLOAT:{type:"float",name:"float",length:1},VEC2:{type:"float",name:"vec2",length:2},VEC3:{type:"float",name:"vec3",length:3},VEC4:{type:"float",name:"vec4",length:4}},v={MAT2:{type:"matrix",name:"mat2",length:4},MAT3:{type:"matrix",name:"mat3",length:9},MAT4:{type:"matrix",name:"mat4",length:16}},g={INT:{type:"int",name:"int",length:1},IVEC2:{type:"int",name:"ivec2",length:2},IVEC3:{type:"int",name:"ivec3",length:3},IVEC4:{type:"int",name:"ivec4",length:4},SAMPLER2D:{type:"int",name:"sampler2D",length:1}},b=new Map([[5126,m.FLOAT],[35664,m.VEC2],[35665,m.VEC3],[35666,m.VEC4],[35674,v.MAT2],[35675,v.MAT3],[35676,v.MAT4],[5124,g.INT],[35667,g.IVEC2],[35668,g.IVEC3],[35669,g.IVEC4],[35678,g.SAMPLER2D]]);class E{constructor(t){var e;this.id=h(),this.source=t,t instanceof ArrayBuffer?this.dataType="f32":(e=t,"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer?this.dataType="f32":this.dataType=function(t){if(t instanceof Float32Array)return"f32";if(t instanceof Uint8Array)return"u8";if(t instanceof Int32Array)return"i32";if(t instanceof Uint32Array)return"u32";if(t instanceof Uint8ClampedArray)return"u8";if(t instanceof Int8Array)return"i8";if(t instanceof Int16Array)return"i16";if(t instanceof Uint16Array)return"u16";throw new u(t)}(t)),this.length=t.byteLength/function(t){switch(t){case"i8":case"u8":return 1;case"i16":case"u16":return 2;case"i32":case"u32":case"f32":return 4;default:throw new u(t)}}(this.dataType)}}class y extends E{constructor(){super(...arguments),this.resourceType="buffer"}}class w extends E{constructor(){super(...arguments),this.resourceType="elements"}}const T={points:0,lines:1,"line loop":2,"line strip":3,triangles:4,"triangle strip":5,"triangle fan":6},_={zero:0,one:1,"src color":768,"one minus src color":769,"dst color":774,"one minus dst color":775,"src alpha":770,"one minus src alpha":771,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},A={front:1028,back:1029,"front and back":1032},x={cw:2304,ccw:2305},R={add:32774,subtract:32778,"reverse subtract":32779},S={source:"one",destination:"zero",equation:"add"};const C={never:512,less:513,equal:514,lequal:515,greater:516,notequal:517,gequal:518,always:519};class P{constructor({primitive:t="triangles",shader:e,attributes:n,indices:r,count:i=0,instances:o,uniforms:s={},textures:a={},blend:c,depthTest:u,cullFace:l,frontFace:h,renderTarget:f}){var p;this.primitive=T[t],this.shader=e,this.attributes=function(t){const e=Object.create(null);for(const[n,r]of Object.entries(t)){let t;t="buffer"in r&&!d(r)?{...r,buffer:O(r.buffer)}:{buffer:O(r)},e[n]=t}return e}(n),this.indices=r?(p=r,Array.isArray(p)&&(p=new Uint16Array(p)),d(p)&&(p=new w(p)),p):void 0,this.count=i,this.instances=o,this.uniforms=s,this.textures=a,this._cullFace=l?A[l]:void 0,this._frontFace=h?x[h]:2305,this.blend=c?function(t){var e,n;const r={...S,...null!=(e=t.rgb)?e:t},i={...S,...null!=(n=t.alpha)?n:t};return{rgb:{source:_[r.source],destination:_[r.destination],equation:R[r.equation]},alpha:{source:_[i.source],destination:_[i.destination],equation:R[i.equation]}}}(c):void 0,this.depthTest=u?function(t){var e,n;return{mask:null==(e=t.mask)||e,func:C[null!=(n=t.func)?n:"less"],range:{near:0,far:1,...t.range}}}(u):void 0,this.renderTarget=f}get cullFace(){return this._cullFace}set cullFace(t){this._cullFace=void 0!==t?A[t]:void 0}get frontFace(){return this._frontFace}set frontFace(t){t in x&&(this._frontFace=x[t])}get resources(){return[this.shader,...Object.values(this.attributes).map((t=>t.buffer)),...Object.values(this.textures),this.indices,this.renderTarget].filter(f)}}function O(t){return Array.isArray(t)&&(t=new Float32Array(t)),d(t)&&(t=new y(t)),t}class I{constructor(t){this.id=h(),this.resourceType="shader",this.vertexSource=t.vertexSource,this.fragmentSource=t.fragmentSource}}const N="preserve",L="fixed";class M{constructor(t){var e;this.id=h(),this.resourceType="texture",this.textureType="image",this.size=L,this.numberFormat="u8",this.source=t.source,this.name=t.name,this.alpha=t.alpha||N,this.anisotropy=null!=(e=t.anisotropy)?e:0,this.colorFormat=t.colorFormat||"rgba"}get width(){return this.source.width}get height(){return this.source.height}}class F{constructor(t){var e;this.id=h(),this.resourceType="texture",this.textureType="binary",this.size=L,this.source=t.source,this.name=t.name,this.alpha=t.alpha||N,this.width=t.width,this.height=t.height,this.anisotropy=null!=(e=t.anisotropy)?e:0}get colorFormat(){const t=this.source.length/(this.width*this.height);if(1===t)return"r";if(3===t)return"rgb";if(4===t)return"rgba";throw new a(`Invalid number of color channels for binary texture with ID: ${this.id}. Number of channels must be 1 (R) or 3 (RGB) or 4 (RGBA) but the provided data has ${t} channels.`)}get numberFormat(){return this.source instanceof Uint8Array?"u8":"f32"}}class B{constructor(t){var e;this.id=h(),this.resourceType="texture",this.textureType="render",this.source=null,this.name=t.name,this.alpha=t.alpha||N,this.size=t.size||L,this.width=t.width||("fixed"===this.size?0:1),this.height=t.height||("fixed"===this.size?0:1),this.colorFormat=t.colorFormat,this.numberFormat=t.numberFormat,this.anisotropy=null!=(e=t.anisotropy)?e:0}}function D(t,e){return{width:"fixed"===t.size?t.width||e.width:(t.width||1)*e.width,height:"fixed"===t.size?t.height||e.height:(t.height||1)*e.height}}function U(t,e){if("u32"===e.dataType&&!t.getExtension("OES_element_index_uint"))throw new s("UNSIGNED_INT indices are not supported on this device.");const n=t.createBuffer(),r="buffer"===e.resourceType?t.ARRAY_BUFFER:t.ELEMENT_ARRAY_BUFFER;return t.bindBuffer(r,n),t.bufferData(r,e.source,t.STATIC_DRAW),t.bindBuffer(r,null),n}class H{constructor(t,e,n){this.name=t.name,this.length=t.size,this.location=e;const r=b.get(t.type);if(!r)throw new a(`Type of uniform '${t.name}' is not supported.`);this.meta=r,this._data=this.parseData(n)}parseData(t){if(!t)return new Array(this.meta.length).fill(0);const e=this.meta.length*this.length;if(t.flat().length!==e)throw new a(`Could not set uniform '${this.meta.type} ${this.name}'. Expected data with a length of ${e} but your data has a length of ${t.length}.`);return t}equals(t){const e=this._data,n=t;if(e.length!==n.length)return!1;for(let r=0;r10})(t)&&(n=function(t){return t.replace("precision mediump float;","precision highp float;")}(n));const o=t.createShader(e);if(!o)throw new i("Could not create shader");if(t.shaderSource(o,n),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS))return o;{const n=t.getShaderInfoLog(o);t.deleteShader(o);const i=e===t.VERTEX_SHADER?"vertex":"fragment";throw new r(`Could not compile ${i} shader. Details: ${n}`)}}function G(t,e){const n=function(t,e,n){const o=t.createProgram();if(!o)throw new i("Could not create program");const s=j(t,t.VERTEX_SHADER,e),a=j(t,t.FRAGMENT_SHADER,n);if(t.attachShader(o,s),t.attachShader(o,a),t.linkProgram(o),t.deleteShader(s),t.deleteShader(a),t.getProgramParameter(o,t.LINK_STATUS))return o;throw new r(`Could not link program. Details: ${t.getProgramInfoLog(o)}`)}(t,e.vertexSource,e.fragmentSource);t.useProgram(n);const o=t.getProgramParameter(n,t.ACTIVE_ATTRIBUTES),s=new Map;for(let r=0;r=2}return!0}class Y{constructor(t){this.gl=t,this.maxAttribs=Number(t.getParameter(t.MAX_VERTEX_ATTRIBS)),this.shouldEnable=Array.from({length:this.maxAttribs}).fill(!1),this.hasEnabled=Array.from({length:this.maxAttribs}).fill(!1)}setEnabled(t,e){if(t<0)throw new Error(`Attribute index ${t} is out of bounds`);if(t>=this.maxAttribs)throw new Error(`Attribute index ${t} exceeds the maximum number of attributes supported by this device: ${this.maxAttribs}`);this.shouldEnable[t]=e}update(){for(let t=0;t{if(this.onContextLost){let e="No WebGLContextEvent";t&&(e=(null==t?void 0:t.statusMessage)||"No statusMessage"),this.onContextLost(new o(`Error: WebGL context lost - ${e}`))}},this.env=(null==e?void 0:e.env)||window||{devicePixelRatio:1};const n=t.canvas;if(!n)throw new o("Unexpected canvas type: "+typeof n);this.onDispose=null==e?void 0:e.onDispose,this.canvas=n;const[r,i]=this.canvasSize;this.canvas.width=((null==e?void 0:e.width)||r)*this.env.devicePixelRatio,this.canvas.height=((null==e?void 0:e.height)||i)*this.env.devicePixelRatio,this.canvas.addEventListener("webglcontextlost",this.handleContextLost,{once:!0}),this.fbo=t.createFramebuffer(),this.vertexAttribArrayState=new Y(t)}flush(){this.gl.flush()}resize(...t){let e,n;"undefined"!=typeof HTMLCanvasElement&&this.canvas instanceof HTMLCanvasElement?[e=this.canvas.clientWidth,n=this.canvas.clientHeight]=t:[e,n]=t,this.canvas.width=e*this.env.devicePixelRatio,this.canvas.height=n*this.env.devicePixelRatio}load(t){const e=this.gl,n=Array.isArray(t)?t:t.resources;for(const r of n)switch(r.resourceType){case"buffer":case"elements":this.bufferCache.has(r.id)||this.bufferCache.set(r.id,U(e,r));break;case"shader":this.shaderCache.has(r.id)||this.shaderCache.set(r.id,G(e,r));break;case"texture":this.textureCache.has(r.id)||this.textureCache.set(r.id,z(e,r));break;default:throw new u(r)}}update(t){const e=this.gl,n=Array.isArray(t)?t:t.resources;for(const r of n)if("texture"===r.resourceType){const t=this.textureCache.get(r.id);if(!t)throw new o(`Could not update texture with ID: '${r.id}'. Did you remember to use load()?`);this.textureCache.set(r.id,z(e,r,t))}}clear(t,e){var n;const r=this.gl;if(e){const t=null==(n=this.textureCache.get(e.id))?void 0:n.texture;if(!t)throw new o(`Could not find render target with ID: ${e.id}. Did you remember to use load()?`);r.bindFramebuffer(r.FRAMEBUFFER,this.fbo),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t,0)}else r.bindFramebuffer(r.FRAMEBUFFER,null);const i=Array.isArray(t),s=i?t:t.color,a=i?1:t.depth,c=i?255:t.stencil,u=void 0!==s,l=void 0!==a,h=void 0!==c;u&&r.clearColor(...s),l&&r.clearDepth(a),h&&r.clearStencil(c);const f=(u?r.COLOR_BUFFER_BIT:0)|(l?r.DEPTH_BUFFER_BIT:0)|(h?r.STENCIL_BUFFER_BIT:0);r.clear(f)}render(t){var e,n,r,i,c,u,l;const h=this.gl,f=Array.isArray(t)?t:t.renderables;for(const d of f){const t=this.shaderCache.get(d.shader.id);if(!t)throw new o(`Could not find shader with ID: ${d.shader.id}. Did you remember to use load()?`);if(d.blend){const{rgb:t,alpha:e}=d.blend;h.enable(h.BLEND),h.blendFuncSeparate(t.source,t.destination,e.source,e.destination),h.blendEquationSeparate(t.equation,e.equation)}else h.disable(h.BLEND);if(d.depthTest){const{depthTest:t}=d;h.enable(h.DEPTH_TEST),h.depthMask(t.mask),h.depthFunc(t.func),h.depthRange(t.range.near,t.range.far)}else h.disable(h.DEPTH_TEST);if(d.cullFace?(h.enable(h.CULL_FACE),h.frontFace(d.frontFace),h.cullFace(d.cullFace)):h.disable(h.CULL_FACE),h.useProgram(t.program),d.indices){const t=this.getBuffer(d.indices);h.bindBuffer(h.ELEMENT_ARRAY_BUFFER,t)}else h.bindBuffer(h.ELEMENT_ARRAY_BUFFER,null);const f=d.instances?h.getExtension("ANGLE_instanced_arrays"):null;if(d.instances&&!f)throw new s("Instancing is required but not supported on this device");this.vertexAttribArrayState.reset();for(const[s,{location:a,meta:c}]of t.attributes.entries()){this.vertexAttribArrayState.setEnabled(a,!0);const t=d.attributes[s];if(!t)throw new o(`Could not locate shader attribute ${s} within Renderable's attributes.`);const u=p(null!=(e=t.type)?e:t.buffer.dataType),l=this.getBuffer(t.buffer);h.bindBuffer(h.ARRAY_BUFFER,l),h.vertexAttribPointer(a,c.length,u,null!=(n=t.normalized)&&n,null!=(r=t.stride)?r:0,null!=(i=t.offset)?i:0),d.instances&&t.divisor&&f.vertexAttribDivisorANGLE(a,t.divisor)}this.vertexAttribArrayState.update();const m={...d.uniforms,...this.commonUniforms};for(const[e,n]of t.uniforms.entries()){const t=m[e];if(!t)throw new a(`Could not find a value for uniform '${e}'. Make sure you provide a value.`);n.equals(t)||(n.data=t,k(h,n))}for(const[e,n]of t.textures.entries()){h.activeTexture(h.TEXTURE0+n.data.flat()[0]),h.bindTexture(h.TEXTURE_2D,null);const t=d.textures[e];if(!t)throw new a(`Could not find a texture associated with uniform '${e}'. Make sure you provide a value.`);const r=null==(c=this.textureCache.get(t.id))?void 0:c.texture;if(!r)throw new o(`Could not find texture with ID: ${t.id}. Did you remember to use load()?`);h.bindTexture(h.TEXTURE_2D,r)}if(d.renderTarget){const t=null==(u=this.textureCache.get(d.renderTarget.id))?void 0:u.texture;if(!t)throw new o(`Could not find render target with ID: ${d.renderTarget.id}. Did you remember to use load()?`);const{width:e,height:n}=X(h,d.renderTarget);h.bindFramebuffer(h.FRAMEBUFFER,this.fbo),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,t,0),h.viewport(0,0,e,n)}else h.bindFramebuffer(h.FRAMEBUFFER,null),h.viewport(0,0,h.drawingBufferWidth,h.drawingBufferHeight);d.instances?d.indices?f.drawElementsInstancedANGLE(d.primitive,d.indices.length,p(d.indices.dataType),0,d.instances):f.drawArraysInstancedANGLE(d.primitive,0,d.count,d.instances):d.indices?h.drawElements(d.primitive,d.indices.length,p(d.indices.dataType),0):h.drawArrays(d.primitive,0,null!=(l=d.count)?l:0)}}release(t){const e=Array.isArray(t)?t:t.resources;for(const n of e)this.deleteResource(n.id,n.resourceType)}readPixels(t){var e;const n=this.gl;let r;if(t){const i=null==(e=this.textureCache.get(t.id))?void 0:e.texture;if(!i)throw new o(`Could not find render target with ID: ${t.id}. Did you remember to use load()?`);r=X(n,t),n.bindFramebuffer(n.FRAMEBUFFER,this.fbo),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,i,0)}else n.bindFramebuffer(n.FRAMEBUFFER,null),r={width:n.drawingBufferWidth,height:n.drawingBufferHeight};const i=new Uint8Array(r.width*r.height*4);return n.readPixels(0,0,r.width,r.height,n.RGBA,n.UNSIGNED_BYTE,i),new ImageData(new Uint8ClampedArray(i.buffer),r.width,r.height)}dispose(){var t;const e=this.gl;for(const r of this.bufferCache.keys())this.deleteResource(r,"buffer");for(const r of this.shaderCache.keys())this.deleteResource(r,"shader");for(const r of this.textureCache.keys())this.deleteResource(r,"texture");this.bufferCache.clear(),this.shaderCache.clear(),this.textureCache.clear(),e.deleteFramebuffer(this.fbo),e.bindBuffer(e.ARRAY_BUFFER,null),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null);const n=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);for(let r=0;r`void main() {${e}gl_FragColor.rgb *= gl_FragColor.a;\n}`))}function tt(t){return function(t){return Array.isArray(t)}(t)?t:[t]}const et=[],nt=et;function rt(t,e,n,r,i=et){const o=i,s=o.find((i=>!t.includes(i.texture)&&e===i.width&&n===i.height&&r===i.size));if(s)return s.texture;const a=function(t,e,n,r){return new B({name:t,width:e,height:n,size:r||"relative",colorFormat:"rgba",numberFormat:"u8"})}(`pooled-render-texture-${o.length.toString()}`,e,n,r);return o.push({texture:a,width:e,height:n,size:r}),a}class it{constructor(t){this.index=0,this._textures=null!=t?t:[new B({colorFormat:"rgba",numberFormat:"u8"}),new B({colorFormat:"rgba",numberFormat:"u8"})]}get textures(){return this._textures}currentBuffer(){return this._textures[this.index]}nextBuffer(){return this.index=(this.index+1)%this._textures.length,this._textures[this.index]}}const ot=class t{static createPingpongBuffers({width:t,height:e,size:n}={}){const r=rt([],t,e,n),i=rt([r],t,e,n);return new it([r,i])}constructor({passes:e,uniforms:n,textures:r,options:{buffers:i,renderTarget:o,enableOneTriangleOptimisation:s}={}}){this.enableOneTriangleOptimisation=null!=s?s:t.enableOneTriangleOptimisation;const a=null!=i?i:t.createPingpongBuffers(o),{passes:c,uniforms:u}=this.convertShorthands(e,n);this.uniforms=u;const l=c[c.length-1];this.finalPassShaderForCanvas=this.getShader(l,!0),this.finalPassShaderForRenderTexture=this.getShader(l,!1);const h=this.createRenderTextures(c,a,o);this.renderables=this.getRenderables(c,h,a,r,o)}convertShorthands(t,e){return{passes:t.map((t=>"string"==typeof t?{fragment:t}:t)),uniforms:Object.fromEntries(Object.entries(null!=e?e:{}).map((([t,e])=>[t,tt(e)])))}}createRenderTextures(t,e,n){const r=new Map;for(const i of t)i.output&&r.set(i.output,rt([...e.textures,...r.values()],null==n?void 0:n.width,null==n?void 0:n.height,null==n?void 0:n.size));return r}getRenderables(t,e,n,r,i){const o=t.slice(0,-1).map((t=>{const i=this.getShader(t,!1),o=n.currentBuffer(),s=t.output?this.getRenderTexture(t.output,e):n.nextBuffer();return this.getRenderable(t,i,o,s,e,r)})),s=i?this.finalPassShaderForRenderTexture:this.finalPassShaderForCanvas;return[...o,this.getRenderable(t[t.length-1],s,n.currentBuffer(),i,e,r)]}getRenderable(t,e,n,r,i,o){const s=this.uniforms,a=this.getTextures(t,{...o,[K]:n},i),c=this.enableOneTriangleOptimisation?Z:J;return new P({...c,shader:e,uniforms:s,textures:a,renderTarget:r})}getShader(t,e){const n=`\nattribute vec2 aPosition;\nvarying vec2 vTexCoord;\n\nvoid main()\n{\n gl_Position = vec4(aPosition, 0.0, 1.0);\n vTexCoord = aPosition * 0.5 + 0.5;\n ${e?"vTexCoord.y = 1.0 - vTexCoord.y;":""}\n}\n `,r=this.getFragmentSource(t.fragment,e);return new I({vertexSource:n,fragmentSource:r})}getFragmentSource(t,e){return e?Q(t):t}getRenderTexture(t,e){const n=e.get(t);if(!n)throw new a(`Unable to assign texture. Could not find texture '${t}'.`);return n}getTextures(t,e,n){if(t.inputs)for(const r of t.inputs)e[r]=this.getRenderTexture(r,n);return e}update({textures:t,uniforms:e,renderTarget:n}){if(t)for(const[r,i]of Object.entries(t))if(i)for(const t of this.renderables)t.textures[r]=i;if(e)for(const[r,i]of Object.entries(e))this.uniforms[r]&&(this.uniforms[r]=tt(i));if(void 0!==n){const t=this.renderables[this.renderables.length-1],e=null===n?this.finalPassShaderForCanvas:this.finalPassShaderForRenderTexture;t.renderTarget=null!=n?n:void 0,t.shader=e}}get resources(){return[...new Set([...this.renderables.flatMap((t=>t.resources)),this.finalPassShaderForCanvas,this.finalPassShaderForRenderTexture])]}};ot.enableOneTriangleOptimisation=!1;let st,at,ct=ot;function ut(t,e){if(!(st&&at||(st=document.createElement("canvas"),at=st.getContext("2d"),at)))throw new n("Unable to establish `CanvasRenderingContext2D` for debugging");return st.width=t,st.height=e,{canvas:st,context:at}}function lt(t,e){const n=t.readPixels(e),{width:r,height:i}=n,{canvas:o,context:s}=ut(r,i);s.putImageData(n,0,0);const a=o.toDataURL();dt(null!=e?e:t.canvas,a,r/i)}function ht(t){const{width:e,height:n}=t,{canvas:r,context:i}=ut(e,n);t.source instanceof ImageData?i.putImageData(t.source,0,0):i.drawImage(t.source,0,0);dt(t,r.toDataURL(),e/n)}function ft(t){const{source:e,colorFormat:n,width:r,height:i}=t,{canvas:o,context:s}=ut(r,i),a="rgba"===n,c=s.createImageData(r,i),u=c.data;for(let l=0,h=0;l\n \n \n \n \n ')}');\n background-position: center, 0 0;\n background-size: contain, 20px 20px;\n background-repeat: no-repeat, repeat;\n `;console.group("Debugging",t),console.log("%c ",r),console.groupEnd()}const pt="LkEaxkGQc",mt="mXA59BV4k",vt="x8cqPYjGq",gt="zAvK5sktl",bt="j5BD_wqsh",Et="Flt8u8M0x",yt="m5a6RRSnk",wt="MpMrqOkTf",Tt="ihJIFSpvi",_t="mjiW1vcGg",At="T1GP6ZTnQ",xt="zztE2SnZx",Rt="LPlLw5zPI",St="MLGoNA0wv";var Ct=1e-6,Pt="undefined"!=typeof Float32Array?Float32Array:Array;function Ot(){var t=new Pt(9);return Pt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function It(){var t=new Pt(16);return Pt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function Nt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Lt(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],u=e[6],l=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],v=e[13],g=e[14],b=e[15],E=n[0],y=n[1],w=n[2],T=n[3];return t[0]=E*r+y*a+w*h+T*m,t[1]=E*i+y*c+w*f+T*v,t[2]=E*o+y*u+w*d+T*g,t[3]=E*s+y*l+w*p+T*b,E=n[4],y=n[5],w=n[6],T=n[7],t[4]=E*r+y*a+w*h+T*m,t[5]=E*i+y*c+w*f+T*v,t[6]=E*o+y*u+w*d+T*g,t[7]=E*s+y*l+w*p+T*b,E=n[8],y=n[9],w=n[10],T=n[11],t[8]=E*r+y*a+w*h+T*m,t[9]=E*i+y*c+w*f+T*v,t[10]=E*o+y*u+w*d+T*g,t[11]=E*s+y*l+w*p+T*b,E=n[12],y=n[13],w=n[14],T=n[15],t[12]=E*r+y*a+w*h+T*m,t[13]=E*i+y*c+w*f+T*v,t[14]=E*o+y*u+w*d+T*g,t[15]=E*s+y*l+w*p+T*b,t}function Mt(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function Ft(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,c=i+i,u=n*s,l=r*s,h=r*a,f=i*s,d=i*a,p=i*c,m=o*s,v=o*a,g=o*c;return t[0]=1-h-p,t[1]=l+g,t[2]=f-v,t[3]=0,t[4]=l-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+v,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var Bt=function(t,e,n,r,i){var o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t};function Dt(t,e,n,r){var i,o,s,a,c,u,l,h,f,d,p=e[0],m=e[1],v=e[2],g=r[0],b=r[1],E=r[2],y=n[0],w=n[1],T=n[2];return Math.abs(p-y){if(void 0===t.camera)return{cameraKind:"perspective",perspective:{aspectRatio:1.7777777,yfov:.39959652046304894,znear:.10000000149011612,zfar:1e3},id:-1,name:"default camera",rotation:[0,0,0,0],scale:[1,1,1],translation:[0,0,.3499999940395355]};const e=void 0!==t.camera.perspective?"perspective":"orthographic";return"perspective"===e?{name:t.name,id:t.id,translation:t.translation,rotation:t.rotation,scale:t.scale,cameraKind:e,perspective:t.camera.perspective}:{name:t.name,id:t.id,translation:t.translation,rotation:t.rotation,scale:t.scale,cameraKind:e,orthographic:t.camera.orthographic}},zt=1313821514,Wt=5130562;var qt=(t=>(t[t.GLTF_BUFFER_TYPE_BYTE=5120]="GLTF_BUFFER_TYPE_BYTE",t[t.GLTF_BUFFER_TYPE_UNSIGNED_BYTE=5121]="GLTF_BUFFER_TYPE_UNSIGNED_BYTE",t[t.GLTF_BUFFER_TYPE_SHORT=5122]="GLTF_BUFFER_TYPE_SHORT",t[t.GLTF_BUFFER_TYPE_UNSIGNED_SHORT=5123]="GLTF_BUFFER_TYPE_UNSIGNED_SHORT",t[t.GLTF_BUFFER_TYPE_UNSIGNED_INT=5125]="GLTF_BUFFER_TYPE_UNSIGNED_INT",t[t.GLTF_BUFFER_TYPE_FLOAT=5126]="GLTF_BUFFER_TYPE_FLOAT",t))(qt||{});const Yt={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},$t={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},Kt=async t=>(await fetch(t)).arrayBuffer(),Zt=t=>(new TextDecoder).decode(t);class Jt{constructor(t,e,n){this.chunks=[],this.bufferCache=[],this.imageCache=[],this.baseUrl="",this.gltf=e,this.chunks=n,this.baseUrl=t}async accessorData(t){if(!this.gltf.accessors)throw new Error("No accessors views found.");const e=this.gltf.accessors[t],n=$t[e.type];return{buffer:await this.getBufferViewFromAccessor(e),elementsPerType:n}}async getBufferViewFromAccessor(t){if(void 0!==t.bufferView){const e=await this.bufferViewData(t.bufferView,t.componentType);return t.sparse?new Uint8Array(e):e}const e=$t[t.type],n=Yt[t.componentType].BYTES_PER_ELEMENT*e*t.count;return new Uint8Array(n)}async bufferViewData(t,e){if(!this.gltf.bufferViews)throw new Error("No buffer views found.");const n=this.gltf.bufferViews[t],r=await this.getBufferData(n.buffer),i=n.byteLength||0,o=n.byteOffset||0,s=r.buffer,a=r.byteOffset;switch(e){case qt.GLTF_BUFFER_TYPE_BYTE:return new Int8Array(s,a+o,i);case qt.GLTF_BUFFER_TYPE_UNSIGNED_BYTE:return new Uint8Array(s,a+o,i);case qt.GLTF_BUFFER_TYPE_SHORT:return new Int16Array(s,a+o,i/2);case qt.GLTF_BUFFER_TYPE_UNSIGNED_SHORT:return new Uint16Array(s,a+o,i/2);case qt.GLTF_BUFFER_TYPE_UNSIGNED_INT:return new Uint32Array(s,a+o,i/4);case qt.GLTF_BUFFER_TYPE_FLOAT:return new Float32Array(s,a+o,i/4)}return new Uint8Array(s,a+o,i)}async getBufferData(t){if(void 0!==this.bufferCache[t])return this.bufferCache[t];if(!this.gltf.buffers)throw new Error("No buffers found.");const e=this.gltf.buffers[t];if(void 0===e.uri){if(0!==t)throw new Error("GLB container is required to be the first buffer");if(void 0===this.chunks)throw new Error("invalid gltf: buffer has no uri nor is there a GLB buffer");return this.chunks[t]}let n=new ArrayBuffer(0);n=e.uri.includes("data:application")?(t=>{try{const e=t.split("base64,")[1];return Uint8Array.from(atob(e),(t=>t.charCodeAt(0))).buffer}catch{return new ArrayBuffer(0)}})(e.uri):await Kt(this.baseUrl+e.uri);const r=new Uint8Array(n);return this.bufferCache[t]=r,r}async getImageData(t){if(void 0!==this.imageCache[t])return this.imageCache[t];if(!this.gltf.images)throw new Error("No images found.");const e=this.gltf.images[t];let n;if(void 0!==e.bufferView){const t=await this.bufferViewData(e.bufferView,qt.GLTF_BUFFER_TYPE_BYTE),r=new Blob([t],{type:e.mimeType});n=URL.createObjectURL(r)}else{if(void 0===e.uri)throw new Error("Invalid glTF: image must either have a `uri` or a `bufferView`");n=e.uri.includes("base64")?e.uri:this.baseUrl+e.uri}const r=await(async t=>new Promise(((e,n)=>{const r=new Image;r.onload=()=>{e(r)},r.onerror=t=>{n(t)},r.crossOrigin="anonymous",r.src=t})))(n);return this.imageCache[t]=r,r}}const Qt=t=>{let e="";try{const n=new URL(t),r=n.href.split("/");e=n.href.replace(r[r.length-1],"")}catch{e=""}return e},te=async t=>{let e,n,r=[];if(!(t.startsWith("blob:")||t.startsWith("http://")||t.startsWith("https://")))return console.log("fetch retunr external "),null;try{e=await(async t=>await(await fetch(t)).json())(t),n={magic:"glTF",version:parseFloat(e.asset.version),length:0}}catch{let i=await Kt(t);n=(t=>{const e=new DataView(t,0,12);return{magic:Zt(new Uint8Array(t,0,4)),version:e.getUint32(4,!0),length:e.getUint32(8,!0)}})(i),({json:e,chunks:r}=ne(i))}return{json:e,header:n,chunks:r}},ee=async t=>{var e;if("string"!=typeof t)throw new Error("Invalid URI: String is expected.");const n=null!=(e=await te(t))?e:(t=>{try{const e=JSON.parse(t);return{json:e,header:{magic:"glTF",version:parseFloat(e.asset.version),length:0},chunks:[]}}catch{return null}})(t);if(null===n)throw new Error("Failed to fetch data.");const{json:r,header:i,chunks:o}=n;if("glTF"!==i.magic||i.version<2)throw new Error(`File format is not supported! Current header magic: ${i.magic}, version ${i.version}`);if(void 0===r)throw new Error("JSON content not found.");if(void 0===r.asset||parseFloat(r.asset.version)<2)throw new Error("Unsupported asset. glTF versions >= 2.0 are supported.");return{json:r,chunks:o}},ne=t=>{const e=[];let n;const r=new DataView(t,12);let i=0;for(;it instanceof Uint16Array?5123:t instanceof Uint32Array?5125:5121,oe=t=>{const e=[];return t.forEach(((t,n)=>{var r,i;t.name.toLowerCase().includes(re)?e.push({meshIndex:n,name:t.name}):null!=(r=t.material)&&r.name.toLowerCase().includes(re)&&e.push({meshIndex:n,name:null==(i=t.material)?void 0:i.name})})),e},se=t=>{const e=[];return t.forEach((t=>{t.targets.length>0&&e.push(...t.targets)})),e},ae=(t,e)=>{const n=(t=>{const e=[];return t.mesh.forEach(((n,r)=>{const i=n.uvs&&n.uvs.length?n.uvs:new Float32Array(n.positions.length/3*2);e.push({name:t.name+"_"+(r+1).toString(),vertices:n.positions,normals:n.normals,uvs:i,tangent:n.tangent,indices:n.indices,material:n.material,id:r,renderingContextBase:ie(n.indices)})})),e})(t),r=(t=>{let e=0;return t.forEach((t=>{e+=t.positions.length})),e})(t.mesh);return{mesh:n,placeholder:oe(n),targets:se(t.mesh),transform:t.translation.length>0?Mt(It(),kt(t.translation[0],t.translation[1],t.translation[2])):It(),rotation:t.rotation.length>0?Ft(It(),Gt(t.rotation[0],t.rotation[1],t.rotation[2],t.rotation[3])):It(),scale:t.scale.length>0?kt(t.scale[0],t.scale[1],t.scale[2]):kt(1,1,1),name:t.name,parrent:e,positionPrevious:new Float32Array(r),positionNext:new Float32Array(r),animation:{rotation:{times:new Uint8Array,values:[],interpolation:""},transform:{times:new Uint8Array,values:[],interpolation:""},scale:{times:new Uint8Array,values:[],interpolation:""},weights:{times:new Uint8Array,values:new Float32Array,targets:[],interpolation:"",positions:[]}},progression:0,extras:t.extras}},ce=(t=-1,e="",n=[])=>({id:t,name:e,children:n,mesh:[],scale:[],rotation:[],translation:[],camera:void 0,extras:{highlightCorrection:1,shadowCorrection:1}});const ue=kt(0,1,0),le=[.5*Math.PI,.5*Math.PI];e.AdditiveBlending={source:"src alpha",destination:"one",equation:"add"},e.BinaryTexture=F,e.Buffer=y,e.Effect=ct,e.ElementsBuffer=w,e.FraglAllocationError=i,e.FraglCompilationError=r,e.FraglError=n,e.FraglInternalError=c,e.FraglPlatformError=s,e.FraglRuntimeError=o,e.FraglValidationError=a,e.GltfParser=class{constructor(t){this.src=t,this.camera=ce(),this.cameraModel=Xt(this.camera),this.nodes=[],this.clips=[],this.model=[],this.images=[],this.textures=[],this.samplers=[]}async parse(t={}){return this.model=[],this.asset=await(async t=>{const e=Qt(t),n=await ee(t);return new Jt(e,n.json,n.chunks)})(this.src),this.images=await this.getTextureImages(t.imageFilesToReplace),this.updateTexturesData(),this.camera=ce(),this.nodes=await this.getSubNodes(),this.cameraModel=this.getCameraModel(),this.clips=await this.getClips(),this.model=await this.getModel(),this.updateAnimation(),{camera:this.cameraModel,model:this.model,images:this.images,textures:this.textures,samplers:this.samplers}}async getModel(t,e,n=[]){const r=(void 0===t?this.nodes:t).map((t=>{const r=ae(t,e);return t.children.length>0&&this.getModel(t.children,t,n),r}));return n.push(...await Promise.all(r)),n}updateAnimation(){this.clips.forEach((t=>{t.tracks.forEach((t=>{const e=this.model.findIndex((e=>e.name===t.targetObject));if(e>-1){const n=this.model[e];switch(t.targetProperty.toLocaleLowerCase()){case"translation":n.animation.transform.values=this.decodeVector3Animation(t.values,t.valuesElements),n.animation.transform.times=t.times,n.animation.transform.interpolation=t.interpolation;break;case"rotation":n.animation.rotation.values=this.decodeQuaternionAnimation(t.values,t.valuesElements),n.animation.rotation.times=t.times,n.animation.rotation.interpolation=t.interpolation;break;case"scale":n.animation.scale.values=this.decodeVector3Animation(t.values,t.valuesElements),n.animation.scale.times=t.times,n.animation.scale.interpolation=t.interpolation;break;case"weights":n.targets.length>0&&(n.animation.weights.targets=this.model[e].targets,n.animation.weights.times=t.times,n.animation.weights.values=t.values,n.animation.weights.interpolation=t.interpolation,((t,e)=>{const n=t.values.length/t.targets.length;for(let r=0;r-1&&(this.cameraModel.animation=this.model[this.cameraModel.id].animation,this.model=this.model.filter((t=>!t.name.toLocaleLowerCase().includes("camera"))))}getModelVerticesLength(t){let e=0;return t.forEach((t=>{e+=t.vertices.length})),e}decodeQuaternionAnimation(t,e){const n=[];let r=0;for(let i=0;i{const e=await this.getTracks(t);return{name:t.name,tracks:e}}));return t.push(...await Promise.all(n)),t}getTracks(t){const e=this.getAsset();return Promise.all(t.channels.map((async n=>{var r;const i=t.samplers[n.sampler],o=await e.accessorData(i.input),s=await e.accessorData(i.output);return{targetIndex:n.target.node,targetObject:e.gltf.nodes[n.target.node].name,targetProperty:n.target.path,interpolation:null!=(r=i.interpolation)?r:"LINEAR",times:o.buffer,timesElements:o.elementsPerType,values:s.buffer,valuesElements:s.elementsPerType}})))}getCameraModel(){return Xt(this.camera)}updateTexturesData(){var t;this.textures=[],this.samplers=[];const e=this.getGltfFromAsset();this.samplers=null!=(t=e.samplers)?t:[],void 0!==e.textures&&e.textures.forEach(((t,e)=>{t&&(this.textures[e]={sampler:t.sampler,source:t.source})}))}replaceImages(t,e){const n=e.find((e=>{var n;if(null!=(n=t.name)&&n.includes(e.name))return e}));if(!n)throw new a(`No image file found with the name of: ${t.name}`);return n}async getTextureImages(t){if(void 0===this.asset||void 0===this.asset.gltf.images)return[];const e=this.asset.gltf.images.map((async(e,n)=>{var r;return t?this.replaceImages(e,t):{mimeType:e.mimeType,name:e.name,img:await(null==(r=this.asset)?void 0:r.getImageData(n))}}));return Promise.all(e)}async getSubNodes(t,e){const n=this.getGltfFromAsset(),r=0|n.scene,i=n.scenes[r],o=(void 0===t?i.nodes:t).map((async t=>{const r=n.nodes[t],i=ce(t,r.name);return void 0!==r.children&&(i.children=await this.getSubNodes(r.children,r)),void 0!==r.mesh&&(i.mesh=await this.getSubMesh(n.meshes[r.mesh])),i.rotation=[0,0,0,0],void 0!==r.rotation?i.rotation=r.rotation:void 0!==e&&void 0!==e.rotation&&(i.rotation[0]=i.rotation[0]*e.rotation[0],i.rotation[1]=i.rotation[1]*e.rotation[1],i.rotation[2]=i.rotation[2]*e.rotation[2],i.rotation[3]=i.rotation[3]*e.rotation[3]),i.translation=[0,0,0],void 0!==r.translation?i.translation=r.translation:void 0!==e&&void 0!==e.translation&&(i.translation[0]=i.translation[0]*e.translation[0],i.translation[1]=i.translation[1]*e.translation[1],i.translation[2]=i.translation[2]*e.translation[2]),i.scale=[1,1,1],void 0!==r.scale?i.scale=r.scale:void 0!==e&&void 0!==e.scale&&(i.scale[0]=i.scale[0]*e.scale[0],i.scale[1]=i.scale[1]*e.scale[1],i.scale[2]=i.scale[2]*e.scale[2]),void 0!==r.camera&&(i.camera=n.cameras[r.camera],this.camera=i),i.extras=void 0,void 0!==r.extras&&(i.extras={highlightCorrection:1,shadowCorrection:1},i.extras.highlightCorrection=void 0!==r.extras.Highlight_Correction?r.extras.Highlight_Correction:1,i.extras.shadowCorrection=void 0!==r.extras.Shadow_Correction?r.extras.Shadow_Correction:1),i}));return Promise.all(o)}getMaterial(t){const e=this.getAsset().gltf.materials[t];return void 0!==e.pbrMetallicRoughness&&(void 0===e.pbrMetallicRoughness.metallicFactor&&(e.pbrMetallicRoughness.metallicFactor=1),void 0===e.pbrMetallicRoughness.roughnessFactor&&(e.pbrMetallicRoughness.roughnessFactor=1),void 0===e.pbrMetallicRoughness.baseColorFactor&&(e.pbrMetallicRoughness.baseColorFactor=[1,1,1,1])),e}async getTargets(t){const e=this.getAsset(),n=t.targets.map((async t=>{const n={normals:new Uint8Array(0),positions:new Uint8Array(0),tangent:new Uint8Array(0)};return void 0!==t.POSITION&&(n.positions=(await e.accessorData(t.POSITION)).buffer),void 0!==t.NORMAL&&(n.normals=(await e.accessorData(t.NORMAL)).buffer),void 0!==t.TANGENT&&(n.tangent=(await e.accessorData(t.TANGENT)).buffer),n}));return Promise.all(n)}async getSubMesh(t){const e=this.getAsset(),n=t.primitives.map((async t=>{const n={positions:new Uint8Array(0),normals:new Uint8Array(0),uvs:new Uint8Array(0),tangent:new Uint8Array(0),indices:new Uint8Array(0),targets:[],material:void 0};if(void 0!==t.attributes.POSITION&&(n.positions=(await e.accessorData(t.attributes.POSITION)).buffer),void 0!==t.attributes.NORMAL&&(n.normals=(await e.accessorData(t.attributes.NORMAL)).buffer),void 0!==t.attributes.TEXCOORD_0&&(n.uvs=(await e.accessorData(t.attributes.TEXCOORD_0)).buffer,0===n.uvs.length&&(n.uvs=new Float32Array(n.positions.length/3*2))),void 0!==t.attributes.TANGENT&&(n.tangent=(await e.accessorData(t.attributes.TANGENT)).buffer),void 0!==t.indices){const r=await e.accessorData(t.indices);n.indices=r.buffer}return void 0!==t.targets&&(n.targets=await this.getTargets(t)),void 0!==t.material&&(n.material=this.getMaterial(t.material)),n}));return Promise.all(n)}getAsset(){if(void 0===this.asset)throw new Error("Asset is undefined");return this.asset}getGltfFromAsset(){return this.getAsset().gltf}},e.ImageTexture=M,e.MockWebGLRenderingContext=class{constructor(t){this.canvas=t,this.drawingBufferColorSpace="srgb",this.DEPTH_BUFFER_BIT=256,this.STENCIL_BUFFER_BIT=1024,this.COLOR_BUFFER_BIT=16384,this.POINTS=0,this.LINES=1,this.LINE_LOOP=2,this.LINE_STRIP=3,this.TRIANGLES=4,this.TRIANGLE_STRIP=5,this.TRIANGLE_FAN=6,this.ZERO=0,this.ONE=1,this.SRC_COLOR=768,this.ONE_MINUS_SRC_COLOR=769,this.SRC_ALPHA=770,this.ONE_MINUS_SRC_ALPHA=771,this.DST_ALPHA=772,this.ONE_MINUS_DST_ALPHA=773,this.DST_COLOR=774,this.ONE_MINUS_DST_COLOR=775,this.SRC_ALPHA_SATURATE=776,this.FUNC_ADD=32774,this.BLEND_EQUATION=32777,this.BLEND_EQUATION_RGB=32777,this.BLEND_EQUATION_ALPHA=34877,this.FUNC_SUBTRACT=32778,this.FUNC_REVERSE_SUBTRACT=32779,this.BLEND_DST_RGB=32968,this.BLEND_SRC_RGB=32969,this.BLEND_DST_ALPHA=32970,this.BLEND_SRC_ALPHA=32971,this.CONSTANT_COLOR=32769,this.ONE_MINUS_CONSTANT_COLOR=32770,this.CONSTANT_ALPHA=32771,this.ONE_MINUS_CONSTANT_ALPHA=32772,this.BLEND_COLOR=32773,this.ARRAY_BUFFER=34962,this.ELEMENT_ARRAY_BUFFER=34963,this.ARRAY_BUFFER_BINDING=34964,this.ELEMENT_ARRAY_BUFFER_BINDING=34965,this.STREAM_DRAW=35040,this.STATIC_DRAW=35044,this.DYNAMIC_DRAW=35048,this.BUFFER_SIZE=34660,this.BUFFER_USAGE=34661,this.CURRENT_VERTEX_ATTRIB=34342,this.FRONT=1028,this.BACK=1029,this.FRONT_AND_BACK=1032,this.CULL_FACE=2884,this.BLEND=3042,this.DITHER=3024,this.STENCIL_TEST=2960,this.DEPTH_TEST=2929,this.SCISSOR_TEST=3089,this.POLYGON_OFFSET_FILL=32823,this.SAMPLE_ALPHA_TO_COVERAGE=32926,this.SAMPLE_COVERAGE=32928,this.NO_ERROR=0,this.INVALID_ENUM=1280,this.INVALID_VALUE=1281,this.INVALID_OPERATION=1282,this.OUT_OF_MEMORY=1285,this.CW=2304,this.CCW=2305,this.LINE_WIDTH=2849,this.ALIASED_POINT_SIZE_RANGE=33901,this.ALIASED_LINE_WIDTH_RANGE=33902,this.CULL_FACE_MODE=2885,this.FRONT_FACE=2886,this.DEPTH_RANGE=2928,this.DEPTH_WRITEMASK=2930,this.DEPTH_CLEAR_VALUE=2931,this.DEPTH_FUNC=2932,this.STENCIL_CLEAR_VALUE=2961,this.STENCIL_FUNC=2962,this.STENCIL_FAIL=2964,this.STENCIL_PASS_DEPTH_FAIL=2965,this.STENCIL_PASS_DEPTH_PASS=2966,this.STENCIL_REF=2967,this.STENCIL_VALUE_MASK=2963,this.STENCIL_WRITEMASK=2968,this.STENCIL_BACK_FUNC=34816,this.STENCIL_BACK_FAIL=34817,this.STENCIL_BACK_PASS_DEPTH_FAIL=34818,this.STENCIL_BACK_PASS_DEPTH_PASS=34819,this.STENCIL_BACK_REF=36003,this.STENCIL_BACK_VALUE_MASK=36004,this.STENCIL_BACK_WRITEMASK=36005,this.VIEWPORT=2978,this.SCISSOR_BOX=3088,this.COLOR_CLEAR_VALUE=3106,this.COLOR_WRITEMASK=3107,this.UNPACK_ALIGNMENT=3317,this.PACK_ALIGNMENT=3333,this.MAX_TEXTURE_SIZE=3379,this.MAX_VIEWPORT_DIMS=3386,this.SUBPIXEL_BITS=3408,this.RED_BITS=3410,this.GREEN_BITS=3411,this.BLUE_BITS=3412,this.ALPHA_BITS=3413,this.DEPTH_BITS=3414,this.STENCIL_BITS=3415,this.POLYGON_OFFSET_UNITS=10752,this.POLYGON_OFFSET_FACTOR=32824,this.TEXTURE_BINDING_2D=32873,this.SAMPLE_BUFFERS=32936,this.SAMPLES=32937,this.SAMPLE_COVERAGE_VALUE=32938,this.SAMPLE_COVERAGE_INVERT=32939,this.COMPRESSED_TEXTURE_FORMATS=34467,this.DONT_CARE=4352,this.FASTEST=4353,this.NICEST=4354,this.GENERATE_MIPMAP_HINT=33170,this.BYTE=5120,this.UNSIGNED_BYTE=5121,this.SHORT=5122,this.UNSIGNED_SHORT=5123,this.INT=5124,this.UNSIGNED_INT=5125,this.FLOAT=5126,this.DEPTH_COMPONENT=6402,this.ALPHA=6406,this.RGB=6407,this.RGBA=6408,this.LUMINANCE=6409,this.LUMINANCE_ALPHA=6410,this.UNSIGNED_SHORT_4_4_4_4=32819,this.UNSIGNED_SHORT_5_5_5_1=32820,this.UNSIGNED_SHORT_5_6_5=33635,this.FRAGMENT_SHADER=35632,this.VERTEX_SHADER=35633,this.MAX_VERTEX_ATTRIBS=34921,this.MAX_VERTEX_UNIFORM_VECTORS=36347,this.MAX_VARYING_VECTORS=36348,this.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661,this.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660,this.MAX_TEXTURE_IMAGE_UNITS=34930,this.MAX_FRAGMENT_UNIFORM_VECTORS=36349,this.SHADER_TYPE=35663,this.DELETE_STATUS=35712,this.LINK_STATUS=35714,this.VALIDATE_STATUS=35715,this.ATTACHED_SHADERS=35717,this.ACTIVE_UNIFORMS=35718,this.ACTIVE_ATTRIBUTES=35721,this.SHADING_LANGUAGE_VERSION=35724,this.CURRENT_PROGRAM=35725,this.NEVER=512,this.LESS=513,this.EQUAL=514,this.LEQUAL=515,this.GREATER=516,this.NOTEQUAL=517,this.GEQUAL=518,this.ALWAYS=519,this.KEEP=7680,this.REPLACE=7681,this.INCR=7682,this.DECR=7683,this.INVERT=5386,this.INCR_WRAP=34055,this.DECR_WRAP=34056,this.VENDOR=7936,this.RENDERER=7937,this.VERSION=7938,this.NEAREST=9728,this.LINEAR=9729,this.NEAREST_MIPMAP_NEAREST=9984,this.LINEAR_MIPMAP_NEAREST=9985,this.NEAREST_MIPMAP_LINEAR=9986,this.LINEAR_MIPMAP_LINEAR=9987,this.TEXTURE_MAG_FILTER=10240,this.TEXTURE_MIN_FILTER=10241,this.TEXTURE_WRAP_S=10242,this.TEXTURE_WRAP_T=10243,this.TEXTURE_2D=3553,this.TEXTURE=5890,this.TEXTURE_CUBE_MAP=34067,this.TEXTURE_BINDING_CUBE_MAP=34068,this.TEXTURE_CUBE_MAP_POSITIVE_X=34069,this.TEXTURE_CUBE_MAP_NEGATIVE_X=34070,this.TEXTURE_CUBE_MAP_POSITIVE_Y=34071,this.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072,this.TEXTURE_CUBE_MAP_POSITIVE_Z=34073,this.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074,this.MAX_CUBE_MAP_TEXTURE_SIZE=34076,this.TEXTURE0=33984,this.TEXTURE1=33985,this.TEXTURE2=33986,this.TEXTURE3=33987,this.TEXTURE4=33988,this.TEXTURE5=33989,this.TEXTURE6=33990,this.TEXTURE7=33991,this.TEXTURE8=33992,this.TEXTURE9=33993,this.TEXTURE10=33994,this.TEXTURE11=33995,this.TEXTURE12=33996,this.TEXTURE13=33997,this.TEXTURE14=33998,this.TEXTURE15=33999,this.TEXTURE16=34e3,this.TEXTURE17=34001,this.TEXTURE18=34002,this.TEXTURE19=34003,this.TEXTURE20=34004,this.TEXTURE21=34005,this.TEXTURE22=34006,this.TEXTURE23=34007,this.TEXTURE24=34008,this.TEXTURE25=34009,this.TEXTURE26=34010,this.TEXTURE27=34011,this.TEXTURE28=34012,this.TEXTURE29=34013,this.TEXTURE30=34014,this.TEXTURE31=34015,this.ACTIVE_TEXTURE=34016,this.REPEAT=10497,this.CLAMP_TO_EDGE=33071,this.MIRRORED_REPEAT=33648,this.FLOAT_VEC2=35664,this.FLOAT_VEC3=35665,this.FLOAT_VEC4=35666,this.INT_VEC2=35667,this.INT_VEC3=35668,this.INT_VEC4=35669,this.BOOL=35670,this.BOOL_VEC2=35671,this.BOOL_VEC3=35672,this.BOOL_VEC4=35673,this.FLOAT_MAT2=35674,this.FLOAT_MAT3=35675,this.FLOAT_MAT4=35676,this.SAMPLER_2D=35678,this.SAMPLER_CUBE=35680,this.VERTEX_ATTRIB_ARRAY_ENABLED=34338,this.VERTEX_ATTRIB_ARRAY_SIZE=34339,this.VERTEX_ATTRIB_ARRAY_STRIDE=34340,this.VERTEX_ATTRIB_ARRAY_TYPE=34341,this.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922,this.VERTEX_ATTRIB_ARRAY_POINTER=34373,this.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975,this.IMPLEMENTATION_COLOR_READ_TYPE=35738,this.IMPLEMENTATION_COLOR_READ_FORMAT=35739,this.COMPILE_STATUS=35713,this.LOW_FLOAT=36336,this.MEDIUM_FLOAT=36337,this.HIGH_FLOAT=36338,this.LOW_INT=36339,this.MEDIUM_INT=36340,this.HIGH_INT=36341,this.FRAMEBUFFER=36160,this.RENDERBUFFER=36161,this.RGBA4=32854,this.RGB5_A1=32855,this.RGBA8=32856,this.RGB565=36194,this.DEPTH_COMPONENT16=33189,this.STENCIL_INDEX8=36168,this.DEPTH_STENCIL=34041,this.RENDERBUFFER_WIDTH=36162,this.RENDERBUFFER_HEIGHT=36163,this.RENDERBUFFER_INTERNAL_FORMAT=36164,this.RENDERBUFFER_RED_SIZE=36176,this.RENDERBUFFER_GREEN_SIZE=36177,this.RENDERBUFFER_BLUE_SIZE=36178,this.RENDERBUFFER_ALPHA_SIZE=36179,this.RENDERBUFFER_DEPTH_SIZE=36180,this.RENDERBUFFER_STENCIL_SIZE=36181,this.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048,this.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051,this.COLOR_ATTACHMENT0=36064,this.DEPTH_ATTACHMENT=36096,this.STENCIL_ATTACHMENT=36128,this.DEPTH_STENCIL_ATTACHMENT=33306,this.NONE=0,this.FRAMEBUFFER_COMPLETE=36053,this.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054,this.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055,this.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057,this.FRAMEBUFFER_UNSUPPORTED=36061,this.FRAMEBUFFER_BINDING=36006,this.RENDERBUFFER_BINDING=36007,this.MAX_RENDERBUFFER_SIZE=34024,this.INVALID_FRAMEBUFFER_OPERATION=1286,this.UNPACK_FLIP_Y_WEBGL=37440,this.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441,this.CONTEXT_LOST_WEBGL=37442,this.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443,this.BROWSER_DEFAULT_WEBGL=37444}get drawingBufferWidth(){return this.canvas.width}get drawingBufferHeight(){return this.canvas.height}activeTexture(){}attachShader(){}bindAttribLocation(){}bindBuffer(){}bindFramebuffer(){}bindRenderbuffer(){}bindTexture(){}blendColor(){}blendEquation(){}blendEquationSeparate(){}blendFunc(){}blendFuncSeparate(){}bufferData(){}bufferSubData(){}checkFramebufferStatus(){return this.FRAMEBUFFER_COMPLETE}clear(){}clearColor(){}clearDepth(){}clearStencil(){}colorMask(){}compileShader(){}compressedTexImage2D(){}compressedTexSubImage2D(){}copyTexImage2D(){}copyTexSubImage2D(){}createBuffer(){return{}}createFramebuffer(){return{}}createProgram(){return{}}createRenderbuffer(){return{}}createShader(){return{}}createTexture(){return{}}cullFace(){}deleteBuffer(){}deleteFramebuffer(){}deleteProgram(){}deleteRenderbuffer(){}deleteShader(){}deleteTexture(){}depthFunc(){}depthMask(){}depthRange(){}detachShader(){}disable(){}disableVertexAttribArray(){}drawArrays(){}drawElements(){}enable(){}enableVertexAttribArray(){}finish(){}flush(){}framebufferRenderbuffer(){}framebufferTexture2D(){}frontFace(){}generateMipmap(){}getActiveAttrib(){return{}}getActiveUniform(){return null}getAttachedShaders(){return[]}getAttribLocation(){return 0}getBufferParameter(){return 0}getContextAttributes(){return{}}getError(){return this.NO_ERROR}getExtension(){return null}getFramebufferAttachmentParameter(){return 0}getParameter(){return 0}getProgramInfoLog(){return""}getProgramParameter(){return{}}getRenderbufferParameter(){return 0}getShaderInfoLog(){return""}getShaderParameter(){return!0}getShaderPrecisionFormat(){return{rangeMin:127,rangeMax:127,precision:127}}getShaderSource(){return""}getSupportedExtensions(){return[]}getTexParameter(){return 0}getUniform(){return 0}getUniformLocation(){return null}getVertexAttrib(){return 0}getVertexAttribOffset(){return 0}hint(){}isBuffer(){return!1}isContextLost(){return!1}isEnabled(){return!1}isFramebuffer(){return!1}isProgram(){return!1}isRenderbuffer(){return!1}isShader(){return!1}isTexture(){return!1}lineWidth(){}linkProgram(){}pixelStorei(){}polygonOffset(){}readPixels(){}renderbufferStorage(){}sampleCoverage(){}scissor(){}shaderSource(){}stencilFunc(){}stencilFuncSeparate(){}stencilMask(){}stencilMaskSeparate(){}stencilOp(){}stencilOpSeparate(){}texImage2D(){}texParameterf(){}texParameteri(){}texSubImage2D(){}uniform1f(){}uniform1fv(){}uniform1i(){}uniform1iv(){}uniform2f(){}uniform2fv(){}uniform2i(){}uniform2iv(){}uniform3f(){}uniform3fv(){}uniform3i(){}uniform3iv(){}uniform4f(){}uniform4fv(){}uniform4i(){}uniform4iv(){}uniformMatrix2fv(){}uniformMatrix3fv(){}uniformMatrix4fv(){}useProgram(){}validateProgram(){}vertexAttrib1f(){}vertexAttrib1fv(){}vertexAttrib2f(){}vertexAttrib2fv(){}vertexAttrib3f(){}vertexAttrib3fv(){}vertexAttrib4f(){}vertexAttrib4fv(){}vertexAttribPointer(){}viewport(){}},e.ModelViewer=class{constructor(t){this._renderables={},this._renderables=t}get renderables(){return Object.values(this._renderables)}get resources(){return this.renderables.flatMap((t=>t.resources))}getUniformsToUpdateView(t,e){return t.getUniformsToUpdateView(e)}updateAll({uniforms:t}){if(t)for(const e of this.renderables)t.uCameraPosition&&(e.uniforms[St]=t.uCameraPosition),t.uMVPMatrix&&(e.uniforms[At]=t.uMVPMatrix),t.uNormalMatrix&&(e.uniforms[Rt]=t.uNormalMatrix)}updateOne({id:t,textures:e}){const n=this._renderables[t];if(!n)throw new a(`Renderable with id ${t} not found`);e&&e.uPlaceholderTexture&&(n.textures[Et]=e.uPlaceholderTexture)}},e.ModelViewerGltfData=class{constructor(t,e=!1){this.gltf=t,this.meshes=this.gltf.model.map((t=>t.mesh)).flat(),this.shader=new I({vertexSource:"#extension GL_OES_standard_derivatives:enable\nprecision highp float;attribute vec2 zztE2SnZx;attribute vec3 ihJIFSpvi,mjiW1vcGg;uniform mat4 T1GP6ZTnQ;uniform mat3 LPlLw5zPI;uniform vec3 MLGoNA0wv;varying vec2 m;varying vec3 j,p,L,s;void main(){mat4 a=T1GP6ZTnQ;gl_Position=a*vec4(ihJIFSpvi,1.),j=ihJIFSpvi,s=MLGoNA0wv,m=zztE2SnZx,p=LPlLw5zPI*mjiW1vcGg,L=normalize(mjiW1vcGg);}vec3 l=vec3(1.);",fragmentSource:e?"#extension GL_OES_standard_derivatives:enable\nprecision highp float;uniform vec4 LkEaxkGQc;uniform float x8cqPYjGq,zAvK5sktl;uniform sampler2D j5BD_wqsh,m5a6RRSnk,Flt8u8M0x,MpMrqOkTf;varying vec2 m;varying vec3 j,p,s;uniform ivec4 mXA59BV4k;bool D(){return mXA59BV4k.x==1;}bool E(){return mXA59BV4k.y==1;}bool F(){return mXA59BV4k.z==1;}bool G(){return mXA59BV4k.w==1;}float u(vec3 d,vec3 e,float a){float c=a*a*a*a,b=max(dot(d,e),0.),f=b*b*(c-1.)+1.;return c/(3.141593*f*f);}float v(float b,float c){float a=c+1.,d=a*a*.125;return b/(b*(1.-d)+d);}float w(vec3 a,vec3 b,vec3 c,float d){float e=max(dot(a,c),0.),f=max(dot(a,b),0.);return v(e,d)*v(f,d);}vec3 x(float b,vec3 a){return a+(1.-a)*pow(1.-b,5.);}vec3 H(sampler2D e,vec3 b,const vec2 a,vec3 f){vec3 o=texture2D(e,a).xyz*2.-1.,g=dFdx(b),h=dFdy(b);vec2 i=dFdx(a),k=dFdy(a);vec3 c=normalize(f),d=normalize(g*k.t-h*i.t),n=-normalize(cross(c,d));mat3 q=mat3(d,n,c);return normalize(q*o);}vec3 l=vec3(1.);vec3 r(vec3 I,vec3 a,vec3 b,vec3 c,vec3 k,float d,float n,float J){vec3 e=vec3(.04);e=mix(e,I,n);vec3 f=normalize(c+b);float o=u(a,f,d),q=w(a,b,c,d);vec3 g=x(max(dot(f,b),0.),e),y=g,i=vec3(1.)-y;i*=1.-n;float h=max(dot(a,c),0.);vec3 z=o*q*g;float A=4.*max(dot(a,b),0.)*h+1e-3;vec3 B=z/A,C=i,K=(C+B)*k*h;return J*K;}void main(){vec3 b[6];b[0]=normalize(vec3(0.,0.,1.5)),b[1]=normalize(vec3(-1.,0.,.3)),b[2]=normalize(vec3(1.,0.,.3)),b[3]=normalize(vec3(0.,1.,1.5));vec3 c=p,a=LkEaxkGQc.rgb;float g=LkEaxkGQc.a;if(D())a=texture2D(j5BD_wqsh,m).rgb,g=texture2D(j5BD_wqsh,m).a;c=E()?H(m5a6RRSnk,j,m,p):c;float d=x8cqPYjGq;d=G()?texture2D(MpMrqOkTf,m).r:d;float h=zAvK5sktl;vec3 i=normalize(s-j),e=vec3(0.);e=r(a,c,i,b[0]-j,l,d,h,1.5),e+=r(a,c,i,normalize(b[1]-j),l,d,h,.75),e+=r(a,c,i,normalize(b[2]-j),l,d,h,.75),e+=r(a,c,i,normalize(b[3]-j),l,d,h,.75);if(F()){vec4 f=texture2D(Flt8u8M0x,m);a=g==0.?f.rgb*f.a:f.rgb*f.a+a*(1.-f.a),g=max(g,f.a);}a=pow(a,vec3(2.2));vec3 k=a*e*.45;k=pow(k,vec3(.454545)),gl_FragColor=vec4(k,g);}":"#extension GL_OES_standard_derivatives:enable\nprecision highp float;uniform vec4 LkEaxkGQc;uniform float x8cqPYjGq,zAvK5sktl;uniform sampler2D j5BD_wqsh,m5a6RRSnk,Flt8u8M0x,MpMrqOkTf;varying vec2 m;varying vec3 j,p,s;uniform ivec4 mXA59BV4k;bool D(){return mXA59BV4k.x==1;}bool E(){return mXA59BV4k.y==1;}bool F(){return mXA59BV4k.z==1;}bool G(){return mXA59BV4k.w==1;}float u(vec3 d,vec3 e,float a){float c=a*a*a*a,b=max(dot(d,e),0.),f=b*b*(c-1.)+1.;return c/(3.141593*f*f);}float v(float b,float c){float a=c+1.,d=a*a*.125;return b/(b*(1.-d)+d);}float w(vec3 a,vec3 b,vec3 c,float d){float e=max(dot(a,c),0.),f=max(dot(a,b),0.);return v(e,d)*v(f,d);}vec3 x(float b,vec3 a){return a+(1.-a)*pow(1.-b,5.);}vec3 H(sampler2D e,vec3 b,const vec2 a,vec3 f){vec3 o=texture2D(e,a).xyz*2.-1.,g=dFdx(b),h=dFdy(b);vec2 i=dFdx(a),k=dFdy(a);vec3 c=normalize(f),d=normalize(g*k.t-h*i.t),n=-normalize(cross(c,d));mat3 q=mat3(d,n,c);return normalize(q*o);}vec3 l=vec3(1.);vec3 t(vec3 b,vec3 c,vec3 d,vec3 e,float h){float f=max(dot(c,d),0.);vec3 g=f*e*b,a=g;a=clamp(a,0.,1.);return h*a;}vec3 r(vec3 I,vec3 a,vec3 b,vec3 c,vec3 k,float d,float n,float J){vec3 e=vec3(.04);e=mix(e,I,n);vec3 f=normalize(c+b);float o=u(a,f,d),q=w(a,b,c,d);vec3 g=x(max(dot(f,b),0.),e),y=g,i=vec3(1.)-y;i*=1.-n;float h=max(dot(a,c),0.);vec3 z=o*q*g;float A=4.*max(dot(a,b),0.)*h+1e-3;vec3 B=z/A,C=i,K=(C+B)*k*h;return J*K;}void main(){vec3 a[6];a[0]=normalize(vec3(1.,-.5,1.)),a[1]=normalize(vec3(-1.,1.5,1.)),a[2]=normalize(vec3(.4,.4,-1.)),a[3]=normalize(vec3(0.,-1.,0.)),a[4]=normalize(vec3(-1.,0.,0.)),a[5]=normalize(vec3(1.,0.,0.));vec3 c=p,b=LkEaxkGQc.rgb;float g=LkEaxkGQc.a;if(D())b=texture2D(j5BD_wqsh,m).rgb,g=texture2D(j5BD_wqsh,m).a,b=pow(b,vec3(2.2));c=E()?H(m5a6RRSnk,j,m,p):c;float h=x8cqPYjGq;h=G()?texture2D(MpMrqOkTf,m).r:h;float k=zAvK5sktl;vec3 n=normalize(s-j),i=vec3(0.);i=r(b,c,n,a[0]-j,l,h,k,.1),i+=r(b,c,n,normalize(a[1]-j),l,h,k,.1),i+=r(b,c,n,normalize(a[2]-j),l,h,k,.1);vec3 d=t(b,c,a[0]-j,l,1.);d+=t(b,c,a[1]-j,l,1.),d+=t(b,c,a[2]-j,l,1.45),d+=t(b,c,a[3]-j,l,.65),d+=t(b,c,a[4]-j,l,.65),d+=t(b,c,a[5]-j,l,.25);vec3 e=LkEaxkGQc.rgb;if(F()){vec4 f=texture2D(Flt8u8M0x,m);e=g==0.?f.rgb*f.a:f.rgb*f.a+e*(1.-f.a),e=pow(e,vec3(2.2)),g=max(g,f.a);}vec3 o=e*(d+i);o=pow(o,vec3(.454545)),gl_FragColor=vec4(o,g);}"})}getRenderables(){return Object.fromEntries(this.meshes.map((t=>[t.name,this.gltfMeshToRenderable(t)])))}gltfMeshToRenderable(t){if(!t.material)throw new s("Mesh material not found");const{baseColorFactor:e,baseColorTexture:n,isBaseColorTexture:r,metallicFactor:i,roughnessFactor:o,roughnessTexture:a,isRoughnessTexture:c,normalTexture:u,isNormalTexture:l,placeholder:h,isPlaceholderTexture:f,isDoubleSided:d}=this.gltfMaterialToTextures(t.material,this.gltf.images,this.gltf.textures),p=r?1:0,m=l?1:0,v=f?1:0,g=c?1:0;return new P({attributes:{[Tt]:new y(t.vertices),[_t]:new y(t.normals),[xt]:new y(t.uvs)},textures:{[bt]:n,[Et]:h,[yt]:u,[wt]:a},uniforms:{[St]:[0,0,0],[pt]:[e[0],e[1],e[2],e[3]],[gt]:[i],[vt]:[o],[mt]:[p,m,v,g],[At]:Array.from(It()),[Rt]:Array.from(Ot())},shader:this.shader,indices:new w(t.indices),depthTest:{mask:!0,func:"less",range:{near:0,far:1}},...!d&&{cullFace:"back"}})}gltfMaterialToTextures(t,e,n){const r=t.pbrMetallicRoughness.baseColorFactor,i=t.pbrMetallicRoughness.metallicFactor,o=t.pbrMetallicRoughness.roughnessFactor,s=void 0!==t.pbrMetallicRoughness.baseColorTexture,a=t.pbrMetallicRoughness.baseColorTexture?new M({source:e[n[t.pbrMetallicRoughness.baseColorTexture.index].source].img,anisotropy:16}):Vt,c=t.normalTexture?new M({source:e[n[t.normalTexture.index].source].img,anisotropy:16}):Vt,u=void 0!==t.normalTexture,l=t.pbrMetallicRoughness.metallicRoughnessTexture?new M({source:e[n[t.pbrMetallicRoughness.metallicRoughnessTexture.index].source].img,anisotropy:16}):Vt,h=void 0!==t.pbrMetallicRoughness.metallicRoughnessTexture,f=t.name.includes("placeholder");return{baseColorFactor:r,baseColorTexture:a,metallicFactor:i,roughnessFactor:o,roughnessTexture:l,isRoughnessTexture:h,isBaseColorTexture:s,normalTexture:c,isNormalTexture:u,placeholder:Vt,isPlaceholderTexture:f,isDoubleSided:t.doubleSided}}getDataToUpdateAllPlaceholders(t){return this.meshes.filter((t=>{var e;return null==(e=t.material)?void 0:e.name.includes("placeholder")})).map((e=>({id:e.name,textures:{uPlaceholderTexture:new M({source:t,anisotropy:16})}})))}getDataToUpdateSinglePlaceholder(t,e){if(!this.meshes.find((e=>{var n;return e.name===t&&(null==(n=e.material)?void 0:n.name.includes("placeholder"))})))throw new s("Mesh not found");return{id:t,textures:{uPlaceholderTexture:new M({source:e,anisotropy:16})}}}},e.OrbitControls=class{constructor(t,{initialDistance:e,minDistance:n,maxDistance:r,initialRotation:i,rotationTarget:o,enableZooming:s=!1}){if(this.container=t,this.velocity=[0,0],this.mousePosition=[0,0],this.clientSizeRatio=[1,1],this.isMouseDown=!1,this.projectionMatrix=It(),this.viewMatrix=It(),this.modelMatrix=It(),this.modelViewProjectionMatrix=It(),this.cameraPosition=Ut(),this.onMouseDown=t=>{t.preventDefault(),this.mousePosition[0]=t.x,this.mousePosition[1]=t.y,this.clientSizeRatio[0]=window.innerWidth/this.container.clientWidth,this.clientSizeRatio[1]=window.innerHeight/this.container.clientHeight,this.isMouseDown=!0},this.onMouseMove=t=>{if(!this.isMouseDown)return;const{x:e,y:n}=t,r=e-this.mousePosition[0],i=n-this.mousePosition[1],o=.3*Math.sqrt(this.distance);this.velocity[0]=r*o*this.clientSizeRatio[0],this.velocity[1]=i*o*this.clientSizeRatio[1],this.mousePosition[0]=e,this.mousePosition[1]=n,this.tick()},this.onMouseUp=t=>{this.isMouseDown=!1,t.target===this.container&&t.preventDefault()},this.onWheelMove=t=>{t.preventDefault(),t.stopPropagation();const{deltaY:e}=t;if(Number.isNaN(e))return;const n=this.distance+e*this.distance*5e-4;this.zoomToDistance(n)},this.toggleZooming=t=>{t?this.container.addEventListener("wheel",this.onWheelMove,!1):this.container.removeEventListener("wheel",this.onWheelMove,!1)},this.tick=()=>{this.rotation[0]+=.01*this.velocity[0],this.rotation[1]-=.01*this.velocity[1],this.rotation[0]=(this.rotation[0]+2*Math.PI)%(2*Math.PI),this.rotation[1]=Math.min(.99*Math.PI,Math.max(.01,this.rotation[1])),this.velocity[0]*=.95,this.velocity[1]*=.95;const t=this.velocity[0]*this.velocity[0],e=this.velocity[1]*this.velocity[1];return Math.sqrt(t+e)<5e-5&&(this.velocity[0]=0,this.velocity[1]=0),this.updateCameraPosition(),this},this.moveToRotation=(t,e)=>{null!=t&&(this.rotation[0]=(t+2*Math.PI)%(2*Math.PI)),null!=e&&(this.rotation[1]=Math.min(.99*Math.PI,Math.max(.01,e))),this.velocity[0]=0,this.velocity[1]=0},this.loadCameraSettings=({initialCameraDistance:t,cameraDistanceRange:e})=>{this.zoomToDistance(t),this.enableZooming&&null!=e?(this.minDistance=e.min,this.maxDistance=e.max,this.toggleZooming(!0)):this.toggleZooming(!1)},this.zoomToDistance=t=>{null!=t&&(this.distance=Math.min(this.maxDistance,Math.max(t,this.minDistance)))},this.checkCamera=()=>{},void 0!==n&&n<=0)throw new a("Invalid value of minDistance. Expected value must be greater than 0.");this.enableZooming=s,this.distance=null!=e?e:1.5,this.minDistance=null!=n?n:.1,this.maxDistance=null!=r?r:20,this.rotationTarget=null!=o?o:"camera",this.rotation=null!=i?i:le,this.updateCameraPosition(),this.container.addEventListener("mousedown",this.onMouseDown,!1),window.addEventListener("mousemove",this.onMouseMove,!1),window.addEventListener("mouseup",this.onMouseUp,!1)}dispose(){this.container.removeEventListener("mousedown",this.onMouseDown,!1),window.removeEventListener("mousemove",this.onMouseMove,!1),window.removeEventListener("mouseup",this.onMouseUp,!1),this.toggleZooming(!1)}getUniformsToUpdateView(t){return{uniforms:{uCameraPosition:[this.cameraPosition[0],this.cameraPosition[1],this.cameraPosition[2]],uMVPMatrix:this.createMVPMatrix(t),uNormalMatrix:this.createNormalMatrix()}}}createViewMatrix(t){if("model"===this.rotationTarget){const e=[0,0,Ht(t)];Dt(this.viewMatrix,e,t,ue)}else Dt(this.viewMatrix,t,t,ue);return this.viewMatrix}createModelMatrix(){if(Nt(this.modelMatrix),"model"===this.rotationTarget){const[t,e]=this.rotation;(function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],l=e[9],h=e[10],f=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+u*r,t[5]=s*i+l*r,t[6]=a*i+h*r,t[7]=c*i+f*r,t[8]=u*i-o*r,t[9]=l*i-s*r,t[10]=h*i-a*r,t[11]=f*i-c*r})(this.modelMatrix,this.modelMatrix,-e+Math.PI/2),function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],u=e[8],l=e[9],h=e[10],f=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-u*r,t[1]=s*i-l*r,t[2]=a*i-h*r,t[3]=c*i-f*r,t[8]=o*r+u*i,t[9]=s*r+l*i,t[10]=a*r+h*i,t[11]=c*r+f*i}(this.modelMatrix,this.modelMatrix,t-Math.PI/2)}return this.modelMatrix}createMVPMatrix(t){this.createModelMatrix(),this.createViewMatrix(this.cameraPosition),Bt(this.projectionMatrix,.4,t,.01,1e3);const e=kt(0,0,0),n=kt(0,1,0);return Dt(this.viewMatrix,this.cameraPosition,e,n),Lt(this.modelViewProjectionMatrix,this.viewMatrix,this.modelMatrix),Lt(this.modelViewProjectionMatrix,this.projectionMatrix,this.modelViewProjectionMatrix),Array.from(this.modelViewProjectionMatrix)}updateCameraPosition(){const[t,e]="camera"===this.rotationTarget?this.rotation:le;this.cameraPosition[0]=this.distance*Math.cos(t)*Math.sin(e),this.cameraPosition[1]=this.distance*Math.cos(e),this.cameraPosition[2]=this.distance*Math.sin(t)*Math.sin(e)}createNormalMatrix(){const t=Ot();return function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],u=e[7],l=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],b=n*a-r*s,E=n*c-i*s,y=n*u-o*s,w=r*c-i*a,T=r*u-o*a,_=i*u-o*c,A=l*m-h*p,x=l*v-f*p,R=l*g-d*p,S=h*v-f*m,C=h*g-d*m,P=f*g-d*v,O=b*P-E*C+y*S+w*R-T*x+_*A;O&&(O=1/O,t[0]=(a*P-c*C+u*S)*O,t[1]=(c*R-s*P-u*x)*O,t[2]=(s*C-a*R+u*A)*O,t[3]=(i*C-r*P-o*S)*O,t[4]=(n*P-i*R+o*x)*O,t[5]=(r*R-n*C-o*A)*O,t[6]=(m*_-v*T+g*w)*O,t[7]=(v*y-p*_-g*E)*O,t[8]=(p*T-m*y+g*b)*O)}(t,this.modelMatrix),Array.from(t)}},e.PingpongBuffers=it,e.PremultipliedNormalBlending={source:"one",destination:"one minus src alpha",equation:"add"},e.RenderTexture=B,e.Renderable=P,e.Renderer=class{constructor(t){this.resources=new Map,this.create=t,this.backend=this.createBackend()}createBackend(){const t=this.create();return t.onContextLost=t=>{var e;null==(e=this.onContextLost)||e.call(this,t)},t}load(t){this.backend.load(t);const e=Array.isArray(t)?t:t.resources;for(const n of e)this.resources.set(n.id,n)}update(t){this.backend.update(t)}clear(t,e){this.backend.clear(t,e)}render(t){this.backend.render(t)}readPixels(t){return this.backend.readPixels(t)}flush(){this.backend.flush()}release(t){this.backend.release(t);const e=Array.isArray(t)?t:t.resources;for(const n of e)this.resources.delete(n.id)}dispose(){this.backend.dispose(),this.resources.clear()}restore(){this.backend.dispose(),this.backend=this.createBackend(),this.backend.load(Array.from(this.resources.values()))}resize(...t){const[e,n]=t;if(e===this.canvas.width&&n===this.canvas.height)return;this.backend.resize(...t);const r=Array.from(this.resources.values()).filter((t=>"texture"===t.resourceType&&!t.source&&"relative"===t.size));this.backend.update(r)}get canvas(){return this.backend.canvas}},e.Shader=I,e.WebGlRenderer=$,e._renderTexturePool=nt,e.createWebGlRenderer=function(t,e){var n,r,o;const s=document.createElement("canvas");t.append(s),s.style.width="100%",s.style.height="100%";let a="Unknown";const c=t=>{t.statusMessage&&(a=t.statusMessage)};s.addEventListener("webglcontextcreationerror",c);const u={alpha:null==(n=null==e?void 0:e.alpha)||n,antialias:null==(r=null==e?void 0:e.antialias)||r,depth:null!=(o=null==e?void 0:e.depth)&&o,stencil:!1,preserveDrawingBuffer:!(null==e||!e.preserveDrawingBuffer),powerPreference:"high-performance",failIfMajorPerformanceCaveat:!(null==e||!e.failIfMajorPerformanceCaveat)},l=null!=e&&e.useWebGl2?s.getContext("webgl2",u):s.getContext("webgl",u);if(s.removeEventListener("webglcontextcreationerror",c),!l)throw new i(`A WebGL context could not be created. Reason: ${a}`);return new $(l,{...e,onDispose:()=>{s.remove()}})},e.debugBinaryTexture=ft,e.debugImageTexture=ht,e.debugRenderTexture=lt,e.debugTexture=function(t,e){e&&"render"!==e.textureType?"image"===e.textureType?ht(e):ft(e):lt(t,e)},e.getAbsoluteTextureSize=D,e.getPooledRenderTexture=rt,e.injectAlphaPremultiplication=Q,e.paddedTuple=function(t,e,n){if(t.length>n)return t.slice(0,n);const r=[...t];for(;r.length>>15,t^=t>>>12,n=i[o]=n^t,e.i=o,n+(r^r>>>16)|0},function(t,e){var n,r,i,o,s,a=[],c=128;for(e===(0|e)?(r=e,e=null):(e+="\0",r=0,c=Math.max(c,e.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(s=s+1640531527|0,i=0==(n=a[127&o]^=r+s)?i+1:0);for(i>=128&&(a[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)r=a[i+34&127],n=a[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,a[i]=r^n;t.w=s,t.X=a,t.i=i}(e,t)}function a(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function c(t,e){null==t&&(t=+new Date);var n=new s(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.X&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xor4096=c}(0,t=n.nmd(t),n.amdD)},451149:(t,e,n)=>{"use strict";n.d(e,{c:()=>s});var r=n(512547),i=n(996643),o=n(478838);function s(t,e){return e?(0,o.V)(t,e):new r.c((0,i.v)(t))}},459047:(t,e,n)=>{"use strict";n.d(e,{P:()=>r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},477176:(t,e,n)=>{"use strict";n.d(e,{B7:()=>h,PJ:()=>l});var r=n(998083),i=n(512547),o=n(836932),s=n(36391),a=n(459047),c=n(632737),u=n(138949),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.C6(e,t),e}(o.v),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.C6(e,t),e.prototype[u.D]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.P;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i{"use strict";n.d(e,{V:()=>o});var r=n(512547),i=n(36391);function o(t,e){return new r.c((function(n){var r=new i.y,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},484201:(t,e,n)=>{t.exports=n(76901)()},493036:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;ro});const o=function(t,e){void 0===e&&(e="");var n,o=t&&t.split("/")||[],s=e&&e.split("/")||[],a=t&&r(t),c=e&&r(e),u=a||c;if(t&&r(t)?s=o:o.length&&(s.pop(),s=s.concat(o)),!s.length)return"/";if(s.length){var l=s[s.length-1];n="."===l||".."===l||""===l}else n=!1;for(var h=0,f=s.length;f>=0;f--){var d=s[f];"."===d?i(s,f):".."===d?(i(s,f),h++):h&&(i(s,f),h--)}if(!u)for(;h--;h)s.unshift("..");!u||""===s[0]||s[0]&&r(s[0])||s.unshift("");var p=s.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}},493666:(t,e,n)=>{"use strict";n.d(e,{r:()=>i});var r=n(998083),i=function(t){function e(e,n){return t.call(this)||this}return r.C6(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(36391).y)},493668:function(t,e,n){var r;!function(t,i,o){function s(t){var e=this,n="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xor128=c}(0,t=n.nmd(t),n.amdD)},495558:(t,e,n)=>{"use strict";n.d(e,{b:()=>i});var r=n(743444),i=new(n(929661).q)(r.R)},499401:()=>{},512547:(t,e,n)=>{"use strict";n.d(e,{c:()=>c});var r=n(848823),i=n(192582),o=n(721076),s=n(742061),a=n(207440),c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=(0,i.u)(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||a.$.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.$.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.$.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r.H)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=u(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[o.s]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";n.d(e,{H:()=>s});var r=n(512547),i=n(129332),o=n(552675);function s(t,e){return e?(0,o.c)(t,e):t instanceof r.c?t:new r.c((0,i.i)(t))}},523546:(t,e,n)=>{"use strict";n.d(e,{AO:()=>_,Kr:()=>T});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,s=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},c=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},u=function(t,e,n){if(c(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&s.call(t,i)&&r.unshift(t),r=r.filter(n)},l=function t(e,n,r){for(var o=[],a=Array.from(e);a.length;){var u=a.shift();if(!c(u,!1))if("SLOT"===u.tagName){var l=u.assignedElements(),h=t(l.length?l:u.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:u,candidates:h})}else{s.call(u,i)&&r.filter(u)&&(n||!e.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),d=!c(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(f&&d){var p=t(!0===f?u.children:f.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else a.unshift.apply(a,u.children)}}return o},h=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},f=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!h(t)?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},p=function(t){return"INPUT"===t.tagName},m=function(t){return function(t){return p(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||a(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(t,e){for(var n=0;nsummary:first-of-type")?t.parentElement:t;if(s.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return v(t)}else{if("function"==typeof r){for(var o=t;t;){var c=t.parentElement,u=a(t);if(c&&!c.shadowRoot&&!0===r(c))return v(t);t=t.assignedSlot?t.assignedSlot:c||u===t.ownerDocument?c:u.host}t=o}if(function(t){var e,n,r,i,o=t&&a(t),s=null===(e=o)||void 0===e?void 0:e.host,c=!1;if(o&&o!==t)for(c=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=t&&null!==(i=t.ownerDocument)&&void 0!==i&&i.contains(t));!c&&s;){var u,l,h;c=!(null===(l=s=null===(u=o=a(s))||void 0===u?void 0:u.host)||void 0===l||null===(h=l.ownerDocument)||void 0===h||!h.contains(s))}return c}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||c(e)||function(t){return p(t)&&"hidden"===t.type}(e)||g(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n=0)},w=function t(e){var n=[],r=[];return e.forEach((function(e,i){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=f(t);return n<0&&e&&!h(t)?0:n}(s,o),c=o?t(e.candidates):s;0===a?o?n.push.apply(n,c):n.push(s):r.push({documentOrder:i,tabIndex:a,item:e,isScope:o,content:c})})),r.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},T=function(t,e){var n;return n=(e=e||{}).getShadowRoot?l([t],e.includeContainer,{filter:E.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:y}):u(t,e.includeContainer,E.bind(null,e)),w(n)},_=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==s.call(t,i)&&E(e,t)}},536618:(t,e,n)=>{"use strict";n.d(e,{Aj:()=>A,Sx:()=>f,Z8:()=>E,_y:()=>m,eG:()=>c,iB:()=>I,tB:()=>w,uP:()=>T});var r=n(186901),i=function(){};function o(t,e){void 0===e&&(e="Illegal state"),t||function(t){throw new Error("[mobx-utils] "+t)}(e)}var s=function(t){return t&&t!==Object.prototype&&Object.getOwnPropertyNames(t).concat(s(Object.getPrototypeOf(t))||[])},a=function(t){return function(t){var e=s(t);return e.filter((function(t,n){return e.indexOf(t)===n}))}(t).filter((function(t){return"constructor"!==t&&!~t.indexOf("__")}))},c="pending",u="fulfilled",l="rejected";function h(t){switch(this.state){case c:return t.pending&&t.pending(this.value);case l:return t.rejected&&t.rejected(this.value);case u:return t.fulfilled?t.fulfilled(this.value):this.value}}function f(t,e){if(o(arguments.length<=2,"fromPromise expects up to two arguments"),o("function"==typeof t||"object"==typeof t&&t&&"function"==typeof t.then,"Please pass a promise or function to fromPromise"),!0===t.isPromiseBasedObservable)return t;"function"==typeof t&&(t=new Promise(t));var n=t;t.then((0,r.XI)("observableFromPromise-resolve",(function(t){n.value=t,n.state=u})),(0,r.XI)("observableFromPromise-reject",(function(t){n.value=t,n.state=l}))),n.isPromiseBasedObservable=!0,n.case=h;var i=!e||e.state!==u&&e.state!==c?void 0:e.value;return(0,r.kt)(n,{value:i,state:c},{},{deep:!1}),n}!function(t){t.reject=(0,r.XI)("fromPromise.reject",(function(e){var n=t(Promise.reject(e));return n.state=l,n.value=e,n})),t.resolve=(0,r.XI)("fromPromise.resolve",(function(e){void 0===e&&(e=void 0);var n=t(Promise.resolve(e));return n.state=u,n.value=e,n}))}(f||(f={}));function d(t,e,n){void 0===e&&(e=i),void 0===n&&(n=void 0);var s=!1,a=!1,c=n,u=function(){s&&(s=!1,e())},l=(0,r.MN)("ResourceBasedObservable",(function(){o(!s&&!a),s=!0,t((function(t){(0,r.vx)(!0,(function(){c=t,l.reportChanged()}))}))}),u);return{current:function(){return o(!a,"subscribingObservable has already been disposed"),l.reportObserved()||s||console.warn("Called `get` of a subscribingObservable outside a reaction. Current value will be returned but no new subscription has started"),c},dispose:function(){a=!0,u()},isAlive:function(){return s}}}var p=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};function m(t,e){var n;void 0===e&&(e=!1);var i=(0,r.EW)(t);return(n={subscribe:function(t){return"function"==typeof t?{unsubscribe:(0,r.lB)(i,(function(e){var n=e.newValue;return t(n)}),e)}:t&&"object"==typeof t&&t.next?{unsubscribe:(0,r.lB)(i,(function(e){var n=e.newValue;return t.next(n)}),e)}:{unsubscribe:function(){}}}})["function"==typeof Symbol&&Symbol.observable||"@@observable"]=function(){return this},n}!function(){function t(t,e){var n=this;Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"subscription",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,r.Gn)(this),(0,r.h5)((function(){n.current=e,n.subscription=t.subscribe(n)}))}Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.subscription&&this.subscription.unsubscribe()}}),Object.defineProperty(t.prototype,"next",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t}}),Object.defineProperty(t.prototype,"complete",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.dispose()}}),Object.defineProperty(t.prototype,"error",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t,this.dispose()}}),p([r.sH.ref],t.prototype,"current",void 0),p([r.XI.bound],t.prototype,"next",null),p([r.XI.bound],t.prototype,"complete",null),p([r.XI.bound],t.prototype,"error",null)}();var v=function(){return v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},b=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];!function(){function t(t){var e=this;Object.defineProperty(this,"model",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"localValues",{enumerable:!0,configurable:!0,writable:!0,value:r.sH.map({})}),Object.defineProperty(this,"localComputedValues",{enumerable:!0,configurable:!0,writable:!0,value:r.sH.map({})}),Object.defineProperty(this,"isPropertyDirty",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return e.localValues.has(t)}}),(0,r.Gn)(this),o((0,r.OB)(t),"createViewModel expects an observable object");var n=a(this);a(t).forEach((function(i){var s;if(!n.includes(i)&&i!==r.BQ&&"__mobxDidRunLazyInitializers"!==i){if(o(-1===b.indexOf(i),"The propertyname "+i+" is reserved and cannot be used with viewModels"),(0,r.H8)(t,i)){var a=(0,r.Mr)(t,i),c=a.derivation.bind(e),u=null===(s=a.setter_)||void 0===s?void 0:s.bind(e);e.localComputedValues.set(i,(0,r.EW)(c,{set:u}))}var l=Object.getOwnPropertyDescriptor(t,i),h=l?{enumerable:l.enumerable}:{};Object.defineProperty(e,i,v(v({},h),{configurable:!0,get:function(){return(0,r.H8)(t,i)?e.localComputedValues.get(i).get():e.isPropertyDirty(i)?e.localValues.get(i):e.model[i]},set:(0,r.XI)((function(n){(0,r.H8)(t,i)?e.localComputedValues.get(i).set(n):n!==e.model[i]?e.localValues.set(i,n):e.localValues.delete(i)}))}))}}))}Object.defineProperty(t.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changedValues",{get:function(){return new Map(this.localValues)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;(0,r.HP)(this.localValues).forEach((function(e){var n=t.localValues.get(e),i=t.model[e];(0,r.Fq)(i)?i.replace(n):(0,r.uz)(i)?(i.clear(),i.merge(n)):(0,r.YQ)(n)||(t.model[e]=n)})),this.localValues.clear()}}),Object.defineProperty(t.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.localValues.clear()}}),Object.defineProperty(t.prototype,"resetProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.localValues.delete(t)}}),g([r.EW],t.prototype,"isDirty",null),g([r.EW],t.prototype,"changedValues",null),g([r.XI.bound],t.prototype,"submit",null),g([r.XI.bound],t.prototype,"reset",null),g([r.XI.bound],t.prototype,"resetProperty",null)}();function E(t,e){var n=(0,r.go)(t,e);if(!n)throw new Error("No computed provided, please provide an object created with `computed(() => expr)` or an object + property name");return(0,r.lB)(n,(function(){}))}var y={};function w(t){return void 0===t&&(t=1e3),(0,r.Tx)()?(y[t]||(y[t]="number"==typeof t?function(t){var e;return d((function(n){n(Date.now()),e=setInterval((function(){return n(Date.now())}),t)}),(function(){clearInterval(e)}),Date.now())}(t):e=d((function(t){function n(){window.requestAnimationFrame((function(){t(Date.now()),e.isAlive()&&n()}))}t(Date.now()),n()}),(function(){}),Date.now())),y[t].current()):Date.now();var e}function T(t){return(0,r.Tx)()||console.warn("'expr' should only be used inside other reactive functions."),(0,r.EW)(t).get()}var _=function(){return _=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t-1&&this.closest.has(this.args[t-1])}}),Object.defineProperty(t.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.assertCurrentVersion(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.assertCurrentVersion();for(var e=this.args.length,n=this.closest,r=this.closestIdx;r0;r--)0===n[r].size&&n[r-1].delete(this.args[r-1])}}),Object.defineProperty(t.prototype,"assertCurrentVersion",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this.versionChecker(this.version))throw new Error("Concurrent modification exception")}}),t}()),C=function(){function t(){var t=this;Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"argsLength",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"currentVersion",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"checkVersion",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return t.currentVersion===e}})}return Object.defineProperty(t.prototype,"entry",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(-1===this.argsLength)this.argsLength=t.length;else if(this.argsLength!==t.length)throw new Error("DeepMap should be used with functions with a consistent length, expected: "+this.argsLength+", got: "+t.length);return this.currentVersion>=Number.MAX_SAFE_INTEGER&&(this.currentVersion=0),this.currentVersion++,new S(this.store,t,this.currentVersion,this.checkVersion)}}),t}(),P=function(){return P=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";n.d(e,{Z:()=>r});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},549056:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{_:()=>r})},552675:(t,e,n)=>{"use strict";n.d(e,{c:()=>h});var r=n(87906),i=n(69554),o=n(478838),s=n(82613),a=n(726213),c=n(366704),u=n(159247),l=n(709387);function h(t,e){if(null!=t){if((0,a.l)(t))return(0,r.x)(t,e);if((0,c.y)(t))return(0,i.P)(t,e);if((0,u.X)(t))return(0,o.V)(t,e);if((0,l.x)(t)||"string"==typeof t)return(0,s.S)(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},553824:(t,e,n)=>{"use strict";n.d(e,{e:()=>p,r:()=>o});var r=n(944339),i=n(106853);function o(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(i.R).filter((function(t){return t.length>0}));n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(c,(function(t,n,r,i,o,s){if(n)e.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(u.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(s.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(s,(function(t,n,r,i,o,s){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var p=o.options[0];"w"===p?e=(0,r.Cl)((0,r.Cl)({},e),{trailingZeroDisplay:"stripIfInteger"}):p&&(e=(0,r.Cl)((0,r.Cl)({},e),l(p)))}else if(a.test(o.stem))e=(0,r.Cl)((0,r.Cl)({},e),l(o.stem));else{var m=h(o.stem);m&&(e=(0,r.Cl)((0,r.Cl)({},e),m));var v=f(o.stem);v&&(e=(0,r.Cl)((0,r.Cl)({},e),v))}}return e}},561979:(t,e,n)=>{"use strict";n.d(e,{F:()=>i});var r=n(209523),i=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,r.T),e}}},562172:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var r=n(512547),i=n(516194),o=n(935205);function s(t){return new r.c((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?(0,i.H)(n):(0,o.I)()).subscribe(e)}))}},565800:function(t,e,n){var r;!function(t,i,o){function s(t){var e=this;e.next=function(){var t,n,r=e.x,i=e.i;return t=r[i],n=(t^=t>>>7)^t<<24,n^=(t=r[i+1&7])^t>>>10,n^=(t=r[i+3&7])^t>>>3,n^=(t=r[i+4&7])^t<<7,t=r[i+7&7],n^=(t^=t<<13)^t<<9,r[i]=n,e.i=i+1&7,n},function(t,e){var n,r=[];if(e===(0|e))r[0]=e;else for(e=""+e,n=0;n0;--n)t.next()}(e,t)}function a(t,e){return e.x=t.x.slice(),e.i=t.i,e}function c(t,e){null==t&&(t=+new Date);var n=new s(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.x&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xorshift7=c}(0,t=n.nmd(t),n.amdD)},588587:(t,e,n)=>{"use strict";var r,i=n(776266);t=n.hmd(t),r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t;(0,i.A)(r)},589916:(t,e,n)=>{"use strict";n.d(e,{BN:()=>p,UE:()=>g,UU:()=>m,cY:()=>d,jD:()=>v,we:()=>h});var r=n(821046),i=n(978109),o=n(944552),s="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!=r--;)if(!a(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!t.$$typeof)&&!a(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function c(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function u(t,e){const n=c(t);return Math.round(e*n)/n}function l(t){const e=i.useRef(t);return s((()=>{e.current=t})),e}function h(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:h=[],platform:f,elements:{reference:d,floating:p}={},transform:m=!0,whileElementsMounted:v,open:g}=t,[b,E]=i.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[y,w]=i.useState(h);a(y,h)||w(h);const[T,_]=i.useState(null),[A,x]=i.useState(null),R=i.useCallback((t=>{t!==O.current&&(O.current=t,_(t))}),[]),S=i.useCallback((t=>{t!==I.current&&(I.current=t,x(t))}),[]),C=d||T,P=p||A,O=i.useRef(null),I=i.useRef(null),N=i.useRef(b),L=null!=v,M=l(v),F=l(f),B=i.useCallback((()=>{if(!O.current||!I.current)return;const t={placement:e,strategy:n,middleware:y};F.current&&(t.platform=F.current),(0,r.rD)(O.current,I.current,t).then((t=>{const e={...t,isPositioned:!0};D.current&&!a(N.current,e)&&(N.current=e,o.flushSync((()=>{E(e)})))}))}),[y,e,n,F]);s((()=>{!1===g&&N.current.isPositioned&&(N.current.isPositioned=!1,E((t=>({...t,isPositioned:!1}))))}),[g]);const D=i.useRef(!1);s((()=>(D.current=!0,()=>{D.current=!1})),[]),s((()=>{if(C&&(O.current=C),P&&(I.current=P),C&&P){if(M.current)return M.current(C,P,B);B()}}),[C,P,B,M,L]);const U=i.useMemo((()=>({reference:O,floating:I,setReference:R,setFloating:S})),[R,S]),H=i.useMemo((()=>({reference:C,floating:P})),[C,P]),k=i.useMemo((()=>{const t={position:n,left:0,top:0};if(!H.floating)return t;const e=u(H.floating,b.x),r=u(H.floating,b.y);return m?{...t,transform:"translate("+e+"px, "+r+"px)",...c(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}}),[n,m,H.floating,b.x,b.y]);return i.useMemo((()=>({...b,update:B,refs:U,elements:H,floatingStyles:k})),[b,B,U,H,k])}const f=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:i}="function"==typeof t?t(e):t;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(e):{}:n?(0,r.UE)({element:n,padding:i}).fn(e):{};var o}}),d=(t,e)=>({...(0,r.cY)(t),options:[t,e]}),p=(t,e)=>({...(0,r.BN)(t),options:[t,e]}),m=(t,e)=>({...(0,r.UU)(t),options:[t,e]}),v=(t,e)=>({...(0,r.jD)(t),options:[t,e]}),g=(t,e)=>({...f(t),options:[t,e]})},594314:(t,e,n)=>{"use strict";n.d(e,{A:()=>m,m:()=>d});var r=n(897010),i=n(165669),o=n(710821),s=n(978109),a=n(484201),c=n.n(a),u=n(294462),l=["client","offset","scroll","bounds","margin"];function h(t){var e=[];return l.forEach((function(n){t[n]&&e.push(n)})),e}function f(t,e){var n={};if(e.indexOf("client")>-1&&(n.client={top:t.clientTop,left:t.clientLeft,width:t.clientWidth,height:t.clientHeight}),e.indexOf("offset")>-1&&(n.offset={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}),e.indexOf("scroll")>-1&&(n.scroll={top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}),e.indexOf("bounds")>-1){var r=t.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(e.indexOf("margin")>-1){var i=getComputedStyle(t);n.margin={top:i?parseInt(i.marginTop):0,right:i?parseInt(i.marginRight):0,bottom:i?parseInt(i.marginBottom):0,left:i?parseInt(i.marginLeft):0}}return n}function d(t){return function(e){var n,a;return a=n=function(n){function a(){for(var e,r=arguments.length,i=new Array(r),o=0;o{"use strict";n.d(e,{Im:()=>s.Im,Jp:()=>s.Jp,N1:()=>s.N1,N6:()=>s.N6,Qh:()=>s.Qh,Tu:()=>s.Tu,eW:()=>s.eW,jA:()=>s.jA,oF:()=>s.oF,qg:()=>c,tv:()=>s.tv,xm:()=>s.xm});var r=n(944339),i=n(810487),o=n(332386),s=n(15924);function a(t){t.forEach((function(t){if(delete t.location,(0,s.Jp)(t)||(0,s.N6)(t))for(var e in t.options)delete t.options[e].location,a(t.options[e].value);else(0,s.oF)(t)&&(0,s.N1)(t.style)||((0,s.tv)(t)||(0,s.Qh)(t))&&(0,s.Tu)(t.style)?delete t.style.location:(0,s.xm)(t)&&a(t.children)}))}function c(t,e){void 0===e&&(e={}),e=(0,r.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new o.i(t,e).parse();if(n.err){var s=SyntaxError(i.F[n.err.kind]);throw s.location=n.err.location,s.originalMessage=n.err.message,s}return(null==e?void 0:e.captureLocation)||a(n.val),n.val}o.i},607768:(t,e,n)=>{"use strict";n.d(e,{$t:()=>a,$u:()=>y,EW:()=>b,F2:()=>g,Go:()=>d,O_:()=>p,Pg:()=>u,RS:()=>i,WZ:()=>T,YE:()=>v,YF:()=>c,cX:()=>f,gR:()=>o,jo:()=>w,nr:()=>l,tZ:()=>m,uo:()=>s});var r=n(276089);function i(t){let e=t.activeElement;for(;null!=(null==(n=e)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;e=e.shadowRoot.activeElement}return e}function o(t,e){if(!t||!e)return!1;const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&(0,r.Ng)(n)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function s(){const t=navigator.userAgentData;return null!=t&&t.platform?t.platform:navigator.platform}function a(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map((t=>{let{brand:e,version:n}=t;return e+"/"+n})).join(" "):navigator.userAgent}function c(t){return!(0!==t.mozInputSource||!t.isTrusted)||(h()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType)}function u(t){return!a().includes("jsdom/")&&(!h()&&0===t.width&&0===t.height||h()&&1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"===t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail&&"touch"===t.pointerType)}function l(){return/apple/i.test(navigator.vendor)}function h(){const t=/android/i;return t.test(s())||t.test(a())}function f(){return s().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function d(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function p(t){return"nativeEvent"in t}function m(t){return t.matches("html,body")}function v(t){return(null==t?void 0:t.ownerDocument)||document}function g(t,e){if(null==e)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return null!=n.target&&e.contains(n.target)}function b(t){return"composedPath"in t?t.composedPath()[0]:t.target}const E="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function y(t){return(0,r.sb)(t)&&t.matches(E)}function w(t){t.preventDefault(),t.stopPropagation()}function T(t){return!!t&&("combobox"===t.getAttribute("role")&&y(t))}},612151:(t,e,n)=>{"use strict";n.d(e,{B1:()=>S,C0:()=>m,DD:()=>o,Dz:()=>y,Jx:()=>l,LI:()=>c,PG:()=>g,RI:()=>u,Sg:()=>v,T9:()=>a,TV:()=>E,WJ:()=>T,_3:()=>p,aD:()=>_,bV:()=>x,jk:()=>s,lP:()=>A,nI:()=>R,qE:()=>d,r_:()=>r,sq:()=>b,w7:()=>w});const r=["top","right","bottom","left"],i=["start","end"],o=r.reduce(((t,e)=>t.concat(e,e+"-"+i[0],e+"-"+i[1])),[]),s=Math.min,a=Math.max,c=Math.round,u=Math.floor,l=t=>({x:t,y:t}),h={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(t,e,n){return a(t,s(e,n))}function p(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function v(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function E(t){return["top","bottom"].includes(m(t))?"y":"x"}function y(t){return g(E(t))}function w(t,e,n){void 0===n&&(n=!1);const r=v(t),i=y(t),o=b(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=x(s)),[s,x(s)]}function T(t){const e=x(t);return[_(t),e,_(e)]}function _(t){return t.replace(/start|end/g,(t=>f[t]))}function A(t,e,n,r){const i=v(t);let o=function(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:s;default:return[]}}(m(t),"start"===n,r);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(_)))),o}function x(t){return t.replace(/left|right|bottom|top/g,(t=>h[t]))}function R(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function S(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}},621369:(t,e,n)=>{"use strict";function r(t,e,n,i){function o(t,e){return function(n){!function(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}(e,"addInitializer"),a(n,"An initializer"),t.push(n)}}function s(t,e,n,r,i,s,a,c,u){var l;switch(i){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var h,f,d={kind:l,name:a?"#"+e:e,static:s,private:a,metadata:c},p={v:!1};d.addInitializer=o(r,p),0===i?a?(h=n.get,f=n.set):(h=function(){return this[e]},f=function(t){this[e]=t}):2===i?h=function(){return n.value}:(1!==i&&3!==i||(h=function(){return n.get.call(this)}),1!==i&&4!==i||(f=function(t){n.set.call(this,t)})),d.access=h&&f?{get:h,set:f}:h?{get:h}:{set:f};try{return t(u,d)}finally{p.v=!0}}function a(t,e){if("function"!=typeof t)throw new TypeError(e+" must be a function")}function c(t,e){var n=typeof e;if(1===t){if("object"!==n||null===e)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==e.get&&a(e.get,"accessor.get"),void 0!==e.set&&a(e.set,"accessor.set"),void 0!==e.init&&a(e.init,"accessor.init")}else if("function"!==n){var r;throw r=0===t?"field":10===t?"class":"method",new TypeError(r+" decorators must return a function or void 0")}}function u(t,e,n,r,i,o,a,u,l){var h,f,d,p,m,v,g=n[0];if(a?h=0===i||1===i?{get:n[3],set:n[4]}:3===i?{get:n[3]}:4===i?{set:n[3]}:{value:n[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(e,r)),1===i?d={get:h.get,set:h.set}:2===i?d=h.value:3===i?d=h.get:4===i&&(d=h.set),"function"==typeof g)void 0!==(p=s(g,r,h,u,i,o,a,l,d))&&(c(i,p),0===i?f=p:1===i?(f=p.init,m=p.get||d.get,v=p.set||d.set,d={get:m,set:v}):d=p);else for(var b=g.length-1;b>=0;b--){var E;if(void 0!==(p=s(g[b],r,h,u,i,o,a,l,d)))c(i,p),0===i?E=p:1===i?(E=p.init,m=p.get||d.get,v=p.set||d.set,d={get:m,set:v}):d=p,void 0!==E&&(void 0===f?f=E:"function"==typeof f?f=[f,E]:f.push(E))}if(0===i||1===i){if(void 0===f)f=function(t,e){return e};else if("function"!=typeof f){var y=f;f=function(t,e){for(var n=e,r=0;r3,g=p>=5;if(g?(f=t,p-=5,d=i=i||[]):(f=t.prototype,d=r=r||[]),0!==p&&!v){var b=g?a:s,E=b.get(m)||0;if(!0===E||3===E&&4!==p||4===E&&3!==p)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+m);!E&&p>2?b.set(m,p):b.set(m,!0)}u(o,f,h,m,p,g,v,d,n)}}return l(o,r),l(o,i),o}(t,e,s);return n.length||h(t,s),{e:a,get c(){return function(t,e,n){if(e.length>0){for(var r=[],i=t,s=t.name,a=e.length-1;a>=0;a--){var u={v:!1};try{var l=e[a](i,{kind:"class",name:s,addInitializer:o(r,u),metadata:n})}finally{u.v=!0}void 0!==l&&(c(10,l),i=l)}return[h(i,n),function(){for(var t=0;tr})},621680:(t,e,n)=>{"use strict";t.exports=n(447524)},632737:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i});var r=n(998083),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.C6(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(36391).y)},670798:(t,e,n)=>{"use strict";n.d(e,{S:()=>i});var r=n(962779),i=function(t){return function(e){for(var n=t[r.lJ]();;){var i=void 0;try{i=n.next()}catch(o){return e.error(o),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}}},675421:(t,e,n)=>{"use strict";function r(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}n.d(e,{A:()=>r})},680811:(t,e,n)=>{"use strict";n.d(e,{e:()=>i});var r=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function i(t){var e={};return t.replace(r,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}},688125:(t,e,n)=>{"use strict";n.d(e,{r:()=>r});var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},689420:function(t,e,n){var r;!function(i,o,s){var a,c=256,u=s.pow(c,6),l=s.pow(2,52),h=2*l,f=c-1;function d(t,e,n){var r=[],f=g(v((e=1==e?{entropy:!0}:e||{}).entropy?[t,b(o)]:null==t?function(){try{var t;return a&&(t=a.randomBytes)?t=t(c):(t=new Uint8Array(c),(i.crypto||i.msCrypto).getRandomValues(t)),b(t)}catch(r){var e=i.navigator,n=e&&e.plugins;return[+new Date,i,n,i.screen,b(o)]}}():t,3),r),d=new p(r),E=function(){for(var t=d.g(6),e=u,n=0;t=h;)t/=2,e/=2,n>>>=1;return(t+n)/e};return E.int32=function(){return 0|d.g(4)},E.quick=function(){return d.g(4)/4294967296},E.double=E,g(b(d.S),o),(e.pass||n||function(t,e,n,r){return r&&(r.S&&m(r,d),t.state=function(){return m(d,{})}),n?(s.random=t,e):t})(E,f,"global"in e?e.global:this==s,e.state)}function p(t){var e,n=t.length,r=this,i=0,o=r.i=r.j=0,s=r.S=[];for(n||(t=[n++]);i{"use strict";n.d(e,{A:()=>r});const r=n(978109).createContext(null)},699750:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(897010),i=n(165669),o=n(710821),s=n(434008),a=n(951265),c=n(978109),u=n(367259),l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,a.A)(t,e)}))},h=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i{"use strict";n.d(e,{X:()=>i});var r=n(721076),i=function(t){return function(e){var n=t[r.s]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},702183:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(995366),i=n(218083);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.ZZ)(i.D,t)}},709387:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});var r=n(962779);function i(t){return t&&"function"==typeof t[r.lJ]}},710821:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(982828);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.A)(t,e)}},714648:(t,e,n)=>{"use strict";n.d(e,{R:()=>a});var r=n(512547),i=n(423624),o=n(195577),s=n(257288);function a(t,e,n,u){return(0,o.T)(n)&&(u=n,n=void 0),u?a(t,e,n).pipe((0,s.T)((function(t){return(0,i.c)(t)?u.apply(void 0,t):u(t)}))):new r.c((function(r){c(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function c(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,n,i),o=function(){return s.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var a=t;t.on(e,n),o=function(){return a.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,n),o=function(){return u.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l{"use strict";n.d(e,{h:()=>a});var r=n(512547),i=n(772324),o=n(702183),s=n(451149);function a(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.c?t[0]:(0,o.U)(n)((0,s.c)(t,a))}},721076:(t,e,n)=>{"use strict";n.d(e,{s:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},725446:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(998083),i=n(836932);function o(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.inclusive))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(i.v)},726213:(t,e,n)=>{"use strict";n.d(e,{l:()=>i});var r=n(721076);function i(t){return t&&"function"==typeof t[r.s]}},740378:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var r=n(984543);const i=(t=!1)=>{let e=r.eL.value;const n=e;let i=t;return()=>({s:t=>(i||(i=!0,r.eL.value=e),t),r:t=>(i&&(e=r.eL.value),i=!1,r.eL.value=n,t)})}},742061:(t,e,n)=>{"use strict";n.d(e,{m:()=>i});var r=n(218083);function i(t){return 0===t.length?r.D:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},743444:(t,e,n)=>{"use strict";n.d(e,{R:()=>i});var r=n(998083),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.C6(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(n(493666).r)},752933:(t,e,n)=>{"use strict";function r(){}n.d(e,{l:()=>r})},754838:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},767911:(t,e,n)=>{"use strict";n.d(e,{f:()=>l});var r=n(998083),i=n(477176),o=n(512547),s=n(836932),a=n(36391),c=n(802408),u=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.C6(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.y).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=a.y.EMPTY)),t},e.prototype.refCount=function(){return(0,c.B)()(this)},e}(o.c),l=function(){var t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.PJ);s.v},772324:(t,e,n)=>{"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{m:()=>r})},776266:(t,e,n)=>{"use strict";function r(t){var e,n=t.Symbol;if("function"==typeof n)if(n.observable)e=n.observable;else{e="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch(r){}}else e="@@observable";return e}n.d(e,{A:()=>r})},787475:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:()=>r})},802408:(t,e,n)=>{"use strict";n.d(e,{B:()=>o});var r=n(998083),i=n(836932);function o(){return function(t){return t.lift(new s(t))}}var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new a(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.C6(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.v)},810487:(t,e,n)=>{"use strict";var r;n.d(e,{F:()=>r}),function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={}))},815703:(t,e,n)=>{"use strict";n.d(e,{F:()=>r.Fm,r:()=>r.rT});var r=n(984543)},821046:(t,e,n)=>{"use strict";n.d(e,{BN:()=>R,ER:()=>N,Ej:()=>C,RK:()=>x,UE:()=>O,UU:()=>S,__:()=>_,cY:()=>A,iD:()=>w,jD:()=>P,ll:()=>T,mG:()=>I,rD:()=>L});var r=n(612151),i=n(374560),o=n(276089);function s(t){const e=(0,o.L9)(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=(0,o.sb)(t),a=s?t.offsetWidth:n,c=s?t.offsetHeight:i,u=(0,r.LI)(n)!==a||(0,r.LI)(i)!==c;return u&&(n=a,i=c),{width:n,height:i,$:u}}function a(t){return(0,o.vq)(t)?t:t.contextElement}function c(t){const e=a(t);if(!(0,o.sb)(e))return(0,r.Jx)(1);const n=e.getBoundingClientRect(),{width:i,height:c,$:u}=s(e);let l=(u?(0,r.LI)(n.width):n.width)/i,h=(u?(0,r.LI)(n.height):n.height)/c;return l&&Number.isFinite(l)||(l=1),h&&Number.isFinite(h)||(h=1),{x:l,y:h}}const u=(0,r.Jx)(0);function l(t){const e=(0,o.zk)(t);return(0,o.Tc)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:u}function h(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const s=t.getBoundingClientRect(),u=a(t);let h=(0,r.Jx)(1);e&&(i?(0,o.vq)(i)&&(h=c(i)):h=c(t));const f=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==(0,o.zk)(t))&&e}(u,n,i)?l(u):(0,r.Jx)(0);let d=(s.left+f.x)/h.x,p=(s.top+f.y)/h.y,m=s.width/h.x,v=s.height/h.y;if(u){const t=(0,o.zk)(u),e=i&&(0,o.vq)(i)?(0,o.zk)(i):i;let n=t,r=n.frameElement;for(;r&&i&&e!==n;){const t=c(r),e=r.getBoundingClientRect(),i=(0,o.L9)(r),s=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;d*=t.x,p*=t.y,m*=t.x,v*=t.y,d+=s,p+=a,n=(0,o.zk)(r),r=n.frameElement}}return(0,r.B1)({width:m,height:v,x:d,y:p})}const f=[":popover-open",":modal"];function d(t){return f.some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function p(t){return h((0,o.ep)(t)).left+(0,o.CP)(t).scrollLeft}function m(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=(0,o.zk)(t),r=(0,o.ep)(t),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){s=i.width,a=i.height;const t=(0,o.Tc)();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:a,x:c,y:u}}(t,n);else if("document"===e)i=function(t){const e=(0,o.ep)(t),n=(0,o.CP)(t),i=t.ownerDocument.body,s=(0,r.T9)(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=(0,r.T9)(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+p(t);const u=-n.scrollTop;return"rtl"===(0,o.L9)(i).direction&&(c+=(0,r.T9)(e.clientWidth,i.clientWidth)-s),{width:s,height:a,x:c,y:u}}((0,o.ep)(t));else if((0,o.vq)(e))i=function(t,e){const n=h(t,!0,"fixed"===e),i=n.top+t.clientTop,s=n.left+t.clientLeft,a=(0,o.sb)(t)?c(t):(0,r.Jx)(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:s*a.x,y:i*a.y}}(e,n);else{const n=l(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return(0,r.B1)(i)}function v(t,e){const n=(0,o.$4)(t);return!(n===e||!(0,o.vq)(n)||(0,o.eu)(n))&&("fixed"===(0,o.L9)(n).position||v(n,e))}function g(t,e,n){const i=(0,o.sb)(e),s=(0,o.ep)(e),a="fixed"===n,c=h(t,!0,a,e);let u={scrollLeft:0,scrollTop:0};const l=(0,r.Jx)(0);if(i||!i&&!a)if(("body"!==(0,o.mq)(e)||(0,o.ZU)(s))&&(u=(0,o.CP)(e)),i){const t=h(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else s&&(l.x=p(s));return{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function b(t){return"static"===(0,o.L9)(t).position}function E(t,e){return(0,o.sb)(t)&&"fixed"!==(0,o.L9)(t).position?e?e(t):t.offsetParent:null}function y(t,e){const n=(0,o.zk)(t);if(d(t))return n;if(!(0,o.sb)(t)){let e=(0,o.$4)(t);for(;e&&!(0,o.eu)(e);){if((0,o.vq)(e)&&!b(e))return e;e=(0,o.$4)(e)}return n}let r=E(t,e);for(;r&&(0,o.Lv)(r)&&b(r);)r=E(r,e);return r&&(0,o.eu)(r)&&b(r)&&!(0,o.sQ)(r)?n:r||(0,o.gJ)(t)||n}const w={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const a="fixed"===s,u=(0,o.ep)(i),l=!!e&&d(e.floating);if(i===u||l&&a)return n;let f={scrollLeft:0,scrollTop:0},p=(0,r.Jx)(1);const m=(0,r.Jx)(0),v=(0,o.sb)(i);if((v||!v&&!a)&&(("body"!==(0,o.mq)(i)||(0,o.ZU)(u))&&(f=(0,o.CP)(i)),(0,o.sb)(i))){const t=h(i);p=c(i),m.x=t.x+i.clientLeft,m.y=t.y+i.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+m.x,y:n.y*p.y-f.scrollTop*p.y+m.y}},getDocumentElement:o.ep,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const a=[..."clippingAncestors"===n?d(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=(0,o.v9)(t,[],!1).filter((t=>(0,o.vq)(t)&&"body"!==(0,o.mq)(t))),i=null;const s="fixed"===(0,o.L9)(t).position;let a=s?(0,o.$4)(t):t;for(;(0,o.vq)(a)&&!(0,o.eu)(a);){const e=(0,o.L9)(a),n=(0,o.sQ)(a);n||"fixed"!==e.position||(i=null),(s?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||(0,o.ZU)(a)&&!n&&v(t,a))?r=r.filter((t=>t!==a)):i=e,a=(0,o.$4)(a)}return e.set(t,r),r}(e,this._c):[].concat(n),i],c=a[0],u=a.reduce(((t,n)=>{const i=m(e,n,s);return t.top=(0,r.T9)(i.top,t.top),t.right=(0,r.jk)(i.right,t.right),t.bottom=(0,r.jk)(i.bottom,t.bottom),t.left=(0,r.T9)(i.left,t.left),t}),m(e,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:y,getElementRects:async function(t){const e=this.getOffsetParent||y,n=this.getDimensions,r=await n(t.floating);return{reference:g(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=s(t);return{width:e,height:n}},getScale:c,isElement:o.vq,isRTL:function(t){return"rtl"===(0,o.L9)(t).direction}};function T(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,d=a(t),p=s||c?[...d?(0,o.v9)(d):[],...(0,o.v9)(e)]:[];p.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)}));const m=d&&l?function(t,e){let n,i=null;const s=(0,o.ep)(t);function a(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function o(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),a();const{left:l,top:h,width:f,height:d}=t.getBoundingClientRect();if(c||e(),!f||!d)return;const p={rootMargin:-(0,r.RI)(h)+"px "+-(0,r.RI)(s.clientWidth-(l+f))+"px "+-(0,r.RI)(s.clientHeight-(h+d))+"px "+-(0,r.RI)(l)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let m=!0;function v(t){const e=t[0].intersectionRatio;if(e!==u){if(!m)return o();e?o(!1,e):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}m=!1}try{i=new IntersectionObserver(v,{...p,root:s.ownerDocument})}catch(g){i=new IntersectionObserver(v,p)}i.observe(t)}(!0),a}(d,n):null;let v,g=-1,b=null;u&&(b=new ResizeObserver((t=>{let[r]=t;r&&r.target===d&&b&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=b)||t.observe(e)}))),n()})),d&&!f&&b.observe(d),b.observe(e));let E=f?h(t):null;return f&&function e(){const r=h(t);!E||r.x===E.x&&r.y===E.y&&r.width===E.width&&r.height===E.height||n();E=r,v=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach((t=>{s&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)})),null==m||m(),null==(t=b)||t.disconnect(),b=null,f&&cancelAnimationFrame(v)}}const _=i.__,A=i.cY,x=i.RK,R=i.BN,S=i.UU,C=i.Ej,P=i.jD,O=i.UE,I=i.mG,N=i.ER,L=(t,e,n)=>{const r=new Map,o={platform:w,...n},s={...o.platform,_c:r};return(0,i.rD)(t,e,{...o,platform:s})}},836932:(t,e,n)=>{"use strict";n.d(e,{v:()=>l});var r=n(998083),i=n(195577),o=n(378816),s=n(36391),a=n(138949),c=n(207440),u=n(209523),l=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.I;break;case 1:if(!n){s.destination=o.I;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,r,i)}return s}return r.C6(e,t),e.prototype[a.D]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.y),h=function(t){function e(e,n,r,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return(0,i.T)(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==o.I&&(u=Object.create(n),(0,i.T)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=r,c._complete=s,c}return r.C6(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.$.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,u.T)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,u.T)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.$.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.$.useDeprecatedSynchronousErrorHandling)throw n;(0,u.T)(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return c.$.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):((0,u.T)(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},848106:(t,e,n)=>{"use strict";n.d(e,{dw:()=>s,p7:()=>i,qX:()=>a});var r=n(978109);function i(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function o(t,e,n){return null!=n[e]?n[e]:t.props[e]}function s(t,e){return i(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:o(n,"appear",t),enter:o(n,"enter",t),exit:o(n,"exit",t)})}))}function a(t,e,n){var s=i(t.children),a=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var s in t)s in e?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var c in e){if(i[c])for(r=0;r{"use strict";n.d(e,{H:()=>i});var r=n(836932);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.v?i:null}return!0}},853469:(t,e,n)=>{"use strict";n.d(e,{TT:()=>r,hN:()=>a});var r,i=n(607597),o=n(873066);function s(t){return"function"==typeof t}function a(t,e,n,c,u,l,h){if(1===t.length&&(0,i.eW)(t[0]))return[{type:r.literal,value:t[0].value}];for(var f=[],d=0,p=t;d{"use strict";n.d(e,{gn:()=>c,tS:()=>u,zA:()=>a});var r=n(998083),i=n(836932),o=n(512547),s=n(129332),a=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.v),c=(i.v,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.C6(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.v));i.v;function u(t,e){if(!e.closed){if(t instanceof o.c)return t.subscribe(e);var n;try{n=(0,s.i)(t)(e)}catch(r){e.error(r)}return n}}},873066:(t,e,n)=>{"use strict";n.d(e,{$x:()=>s,Ei:()=>c,IF:()=>o,O4:()=>r,Zo:()=>a});var r,i=n(944339);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var o=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return(0,i.C6)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),s=function(t){function e(e,n,i,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return(0,i.C6)(e,t),e}(o),a=function(t){function e(e,n,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.C6)(e,t),e}(o),c=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.C6)(e,t),e}(o)},876461:function(t,e,n){var r;!function(t,i,o){function s(t){var e=this,n=function(){var t=4022871197,e=function(e){e=String(e);for(var n=0;n>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=n(" "),e.s1=n(" "),e.s2=n(" "),e.s0-=n(t),e.s0<0&&(e.s0+=1),e.s1-=n(t),e.s1<0&&(e.s1+=1),e.s2-=n(t),e.s2<0&&(e.s2+=1),n=null}function a(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function c(t,e){var n=new s(t),r=e&&e.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.alea=c}(0,t=n.nmd(t),n.amdD)},882262:t=>{!function(){function e(t,e){var n,r,i,o,s,a,c,u;for(n=3&t.length,r=t.length-n,i=e,s=3432918353,a=461845907,u=0;u>>16)*s&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,n){case 3:c^=(255&t.charCodeAt(u+2))<<16;case 2:c^=(255&t.charCodeAt(u+1))<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&t.charCodeAt(u)))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}var n=e;n.v2=function(t,e){for(var n,r=t.length,i=e^r,o=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0},n.v3=e,t.exports=n}()},893360:(t,e,n)=>{"use strict";n.d(e,{f:()=>i});var r=n(767911);function i(t,e){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(i,e));var s=Object.create(n,r.f);return s.source=n,s.subjectFactory=i,s}}var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}()},897010:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;er})},911832:t=>{"use strict";t.exports=t=>!(!t||t.length<3)&&(255===t[0]&&216===t[1]&&255===t[2])},919010:(t,e,n)=>{"use strict";function r(t,e){var n=e&&e.cache?e.cache:l,r=e&&e.serializer?e.serializer:c;return(e&&e.strategy?e.strategy:a)(t,{cache:n,serializer:r})}function i(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function o(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function s(t,e,n,r,i){return n.bind(e,t,r,i)}function a(t,e){return s(t,this,1===t.length?i:o,e.cache.create(),e.serializer)}n.d(e,{B:()=>r,W:()=>h});var c=function(){return JSON.stringify(arguments)};function u(){this.cache=Object.create(null)}u.prototype.get=function(t){return this.cache[t]},u.prototype.set=function(t,e){this.cache[t]=e};var l={create:function(){return new u}},h={variadic:function(t,e){return s(t,this,o,e.cache.create(),e.serializer)},monadic:function(t,e){return s(t,this,i,e.cache.create(),e.serializer)}}},929661:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var r=n(998083),i=n(354697),o=function(t){function e(n,r){void 0===r&&(r=i._.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.C6(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i._)},929846:(t,e,n)=>{"use strict";n.d(e,{_:()=>r._});var r=n(740378)},935205:(t,e,n)=>{"use strict";n.d(e,{I:()=>o,w:()=>i});var r=n(512547),i=new r.c((function(t){return t.complete()}));function o(t){return t?function(t){return new r.c((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},944339:(t,e,n)=>{"use strict";n.d(e,{C6:()=>i,Cl:()=>o,Tt:()=>s,fX:()=>a});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";n.d(e,{B:()=>s});var r=n(998083),i=n(836932),o=n(495558);function s(t,e){return void 0===e&&(e=o.b),function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.C6(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.v);function u(t){t.debouncedNext()}},951265:(t,e,n)=>{"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}n.d(e,{A:()=>i})},962779:(t,e,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{lJ:()=>i});var i=r()},982828:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})},984543:(t,e,n)=>{"use strict";n.d(e,{Fm:()=>o,eL:()=>i,rT:()=>s});const r=Symbol("Snapshot.wrapped"),i={value:void 0};class o{constructor(){null!=i.value&&(this.parentSnapshot=i.value),this.run=this.run.bind(this)}run(t,...e){const n=i.value;i.value=this;try{return t.call(null,...e)}finally{i.value=n}}static wrap(t){if("function"!=typeof t||t[r])return t;const e=i.value,n=function(...n){const r=i.value;i.value=e;try{return t.call(this,...n)}finally{i.value=r}};return n[r]=!0,n}}class s{constructor(t){this.snapshotToValue=new WeakMap,this.name=t?.name||"",this.defaultValue=t?.defaultValue}get(){let t=i.value;for(;null!=t;){if(this.snapshotToValue.has(t))return this.snapshotToValue.get(t);t=t.parentSnapshot}return this.defaultValue}run(t,e,...n){const r=new o;return this.snapshotToValue.set(r,t),r.run(e,...n)}}i.value=new o},989706:(t,e,n)=>{"use strict";function r(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}n.d(e,{A:()=>i});const i=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var i=r(e),o=r(n);return i!==e||o!==n?t(i,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1}},995366:(t,e,n)=>{"use strict";n.d(e,{ZZ:()=>a});var r=n(998083),i=n(257288),o=n(516194),s=n(869262);function a(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(a((function(n,r){return(0,o.H)(t(n,r)).pipe((0,i.T)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.concurrent))},t}(),u=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.C6(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.gn)},996643:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});var r=function(t){return function(e){for(var n=0,r=t.length;n{"use strict";n.d(e,{C6:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},999208:function(t,e,n){var r;!function(t,i,o){function s(t){var e=this,n="";e.next=function(){var t=e.b,n=e.c,r=e.d,i=e.a;return t=t<<25^t>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-r|0,e.d=r<<16^n>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&a(r,n),i.state=function(){return a(n,{})}),i}i&&i.exports?i.exports=c:n.amdD&&n.amdO?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.tychei=c}(0,t=n.nmd(t),n.amdD)}}]); //# sourceMappingURL=sourcemaps/0fb5f701f46ae649.vendor.js.map